QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#376426 | #2526. Imprecise Computer | FOY# | WA | 0ms | 3600kb | C++23 | 305b | 2024-04-04 09:47:02 | 2024-04-04 09:47:02 |
Judging History
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'