Submission #329654

# Submission time Handle Problem Language Result Execution time Memory
329654 2020-11-21T22:12:19 Z nickmet2004 Remittance (JOI19_remittance) C++11
0 / 100
1 ms 384 KB
#include<bits/stdc++.h>

using namespace std;

int main (){
    ios_base::sync_with_stdio(0); cin.tie(0);
    int n;
    cin >> n;
    int sa = 0 , sb = 0;
    for(int i = 0; i<n; ++i){
        int a , b; cin >> a >> b;
        sa += a; sb+= b;
    }
    if((sa - sb) & 1)cout << "No"<<endl;
    else cout << "Yes" << endl;
}
# Verdict Execution time Memory Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Incorrect 1 ms 364 KB Output isn't correct
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Incorrect 1 ms 364 KB Output isn't correct
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 1 ms 364 KB Output is correct
2 Correct 1 ms 364 KB Output is correct
3 Correct 1 ms 384 KB Output is correct
4 Incorrect 1 ms 364 KB Output isn't correct
5 Halted 0 ms 0 KB -