Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int rez [7];
- for(int i = 0; i<7 ; i++){
- cin>>rez[i];
- }
- int grid[30];
- for(int i = 0; i<30; i++){
- cin>>grid[i];
- }
- bool dt;
- for(int i = 0;i<7;i++){
- for(int j= 0;j<30;j++){
- if(rez[i]==grid[j]){
- dt=true;
- }else{
- dt=false;
- }
- }
- }
- if(dt==true){
- cout<<"DA";
- return 0;
- }else{
- cout<<"NE";
- return 0;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement