답안 #329654

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
329654 2020-11-21T22:12:19 Z nickmet2004 송금 (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;
}
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -