QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#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

Details

Tip: Click on the bar to expand more detailed information

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'