Submission #779038

#TimeUsernameProblemLanguageResultExecution timeMemory
779038vjudge1Zamjena (COCI18_zamjena)C++17
14 / 70
2 ms852 KiB
#include <bits/stdc++.h> using namespace std; #define int long long #define faster ios_base::sync_with_stdio(false);cin.tie(NULL); #define OYY 1000000005 #define mod 998244353 map <string,string> mp; 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[i]; 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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...