QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#376426#2526. Imprecise ComputerFOY#WA 0ms3600kbC++23305b2024-04-04 09:47:022024-04-04 09:47:02

Judging History

This is the latest submission verdict.

  • [2024-04-04 09:47:02]
  • Judged
  • Verdict: WA
  • Time: 0ms
  • Memory: 3600kb
  • [2024-04-04 09:47:02]
  • Submitted

answer

#include <iostream>
#include <vector>
using namespace std;

int main() {
    int n; cin >> n;
    int car = 0;
    for (int i = 0; i < n; i++) {
        int x; cin >> x;
        x -= car;
        car = abs(x);
    }
    if (car == 0) cout << "YES" << endl;
    else cout << "NO" << endl;
}

详细

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3600kb

input:

10
1 2 3 3 3 3 2 1 2 2

output:

YES

result:

wrong answer 1st lines differ - expected: 'NO', found: 'YES'