This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define OYY 1000000000005
#define faster ios_base::sync_with_stdio(false); cin.tie(NULL);
#define mid (start+end)/2
#define mod 1000000007
int32_t main(){
faster
int n;
cin>>n;
string dizi[n],dizi1[n];
for(int i=0;i<n;i++)cin>>dizi[i];
for(int i=0;i<n;i++)cin>>dizi1[n];
bool stop=true;
for(int i=0;i<n;i++){
if((dizi[i][0]>='0' && dizi[i][0]<='9')&& (dizi1[i][0]>='0' && dizi1[i][0]<='9')){
if(dizi[i]!=dizi1[i]){
stop=false;
break;
}
}
}
if(stop)cout<<"DA"<<'\n';
else cout<<"NE"<<'\n';
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |