QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#686173#7941. JackpotvdayskyWA 11ms10700kbPython3182b2024-10-29 05:50:582024-10-29 05:50:59

Judging History

你现在查看的是最新测评结果

  • [2024-10-29 05:50:59]
  • 评测
  • 测评结果:WA
  • 用时:11ms
  • 内存:10700kb
  • [2024-10-29 05:50:58]
  • 提交

answer

input()
points = list(map(int, input().split()))
points.sort()
half = len(points) // 2
print(abs(sum(points[half:]) - sum(points[:half])))
if __name__ == '__main__':
    pass

詳細信息

Test #1:

score: 0
Wrong Answer
time: 11ms
memory: 10700kb

input:

3
2
42 42 42 42
1
42 69
3
1 2 3 4 5 6

output:

2

result:

wrong answer 1st numbers differ - expected: '0', found: '2'