QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#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;
}
Details
Tip: Click on the bar to expand more detailed information
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'