답안 #254655

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
254655 2020-07-30T12:02:27 Z dolphingarlic 송금 (JOI19_remittance) C++14
컴파일 오류
0 ms 0 KB
#include <bits/stdc++.h>
#define FOR(i, x, y) for (ll i = x; i < y; i++)
typedef long long ll;
using namespace std;
 
ll a[1000000], b[1000000];
 
int main() {
    iostream::sync_with_stdio(false);
    cin.tie(0);
    ll n;
    cin >> n;
    FOR(i, 0, n) cin >> a[i] >> b[i];
 
    bool possible = true;
    while (possible) {
        possible = false;
        FOR(i, 0, n) {
            if (a[i] - b[i] - 1) {
                a[(i + 1) % n] += (a[i] - b[i]) / 2;
                a[i] -= (a[i] - b[i]) / 2 * 2;
            }
        }
        FOR(i, 0, n) possible |= a[i] - b[i] > 1;
    }
 
    bool ans = true;
    FOR(i, 0, n) ans &= (a[i] == b[i]);
 
    if (ans) cout << "Yes";
    else cout << "No";
    return 0;
}

Compilation message

remittance.cpp:24:2: error: stray '\302' in program
         FOR(i, 0, n) possible |= a[i] - b[i] > 1;
  ^
remittance.cpp:24:3: error: stray '\240' in program
         FOR(i, 0, n) possible |= a[i] - b[i] > 1;
   ^
remittance.cpp:24:5: error: stray '\302' in program
         FOR(i, 0, n) possible |= a[i] - b[i] > 1;
     ^
remittance.cpp:24:6: error: stray '\240' in program
         FOR(i, 0, n) possible |= a[i] - b[i] > 1;
      ^
remittance.cpp:24:8: error: stray '\302' in program
         FOR(i, 0, n) possible |= a[i] - b[i] > 1;
        ^
remittance.cpp:24:9: error: stray '\240' in program
         FOR(i, 0, n) possible |= a[i] - b[i] > 1;
         ^
remittance.cpp:24:11: error: stray '\302' in program
         FOR(i, 0, n) possible |= a[i] - b[i] > 1;
           ^
remittance.cpp:24:12: error: stray '\240' in program
         FOR(i, 0, n) possible |= a[i] - b[i] > 1;
            ^