Submission #464782

#TimeUsernameProblemLanguageResultExecution timeMemory
464782jurgisExam (eJOI20_exam)C++14
0 / 100
5 ms432 KiB
#include <iostream> #include <bits/stdc++.h> #define f first #define s second #define pii pair<int, int> #define ll long long using namespace std; int main() { int n; cin>>n; int A[n], B[n]; for(int i=0; i<n; i++){cin>>A[i];} for(int i=0; i<n; i++){cin>>B[i];} bool galim = true; for(int i=0; i<n; i++){if(A[i] != B[0]){galim = false;}} if(galim){ cout<<n; } else{cout<<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...