QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#376413 | #2526. Imprecise Computer | FOY# | WA | 4ms | 9464kb | Python3 | 216b | 2024-04-04 09:39:17 | 2024-04-04 09:39:17 |
Judging History
answer
n = int(input())
a = [int(v) for i, v in enumerate(input().split())]
a.append(0)
for i in range(n):
a[i+1] -= a[i]
a[i+1] = abs(a[i+1])
a[i] = 0
if a[-1] == 0: print('YES')
else: print('NO')
詳細信息
Test #1:
score: 0
Wrong Answer
time: 4ms
memory: 9464kb
input:
10 1 2 3 3 3 3 2 1 2 2
output:
YES
result:
wrong answer 1st lines differ - expected: 'NO', found: 'YES'