Submission #833725

# Submission time Handle Problem Language Result Execution time Memory
833725 2023-08-22T08:16:19 Z vjudge1 Exam (eJOI20_exam) C++17
0 / 100
1 ms 340 KB
#include<bits/stdc++.h>
#define ll long long
#define endl "\n"
#define pb push_back
#define pf push_front
#define p push
#define q queue
#define popf pop_front()
#define popb pop_back()
#define dq deque
#define fi first
#define se second
#define ve vector
#define lb lower_bound
#define ub upper_bound
#define pq priority_queue
#define st stack
#define rep(i,a,b) for (ll i=a; i<b; i++)
#define rept(i,a,b) for (ll i=a; i<=b; i++)
#define repr(i,a,b) for (ll i=a; i>=b; i--)
#define ppi pair<ll,ll>
#define test cout<<"A"<<endl

using namespace std;

int main(){
	ios_base::sync_with_stdio(false);
//    cin.tie(NULL);
    
	ll n;
	cin>>n;
	ve<ll> H(n);
	ve<ll> T(n);
	rep(i,0,n){
		cin>>H[i];
	}
	ll ans = 0;
	bool yes = false;
	rep(i,0,n){
		cin>>T[i];
		if (T[i] == H[i]){
			yes = true;
		}
	}
	if (yes)
		cout<<n<<endl;
	else cout<<0<<endl;
    
    return 0;
}

Compilation message

exam.cpp: In function 'int main()':
exam.cpp:37:5: warning: unused variable 'ans' [-Wunused-variable]
   37 |  ll ans = 0;
      |     ^~~
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 340 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 KB Output isn't correct
2 Halted 0 ms 0 KB -