Submission #576551

#TimeUsernameProblemLanguageResultExecution timeMemory
576551ammar124Exam (eJOI20_exam)C++14
0 / 100
1 ms340 KiB
#include <bits/stdc++.h> #define endl '\n' #define ll long long using namespace std; int const maxin = 1e5+6; int main() { ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); int a; cin>>a; ll arr[a]; ll arr2[a]; for(int i=0;i<a;i++) { cin>>arr[i]; } for(int i=0;i<a;i++) { cin>>arr2[i]; } bool flag = false ; for(int i=0;i<a;i++) { if(arr[i] == arr2[0]) flag = true ; } if(flag) cout<<a; else cout<<0; 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...
#Verdict Execution timeMemoryGrader output
Fetching results...