Submission #19402411


Source Code Expand

Copy
N=int(input())
a=[int(i) for i in input().split()]
a.sort()
S=[]
for i in range(N//2):
    S.append(a[i]+a[-i-1])
print(max(S)-min(S))

Submission Info

Submission Time
Task A - Table Tennis
User shakayami
Language PyPy3 (7.3.0)
Score 100
Code Size 142 Byte
Status AC
Exec Time 70 ms
Memory 61300 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 27
Set Name Test Cases
All 00-sample-00.txt, 00-sample-01.txt, 10-unique-00.txt, 10-unique-01.txt, 10-unique-02.txt, 10-unique-03.txt, 10-unique-04.txt, 20-order-00.txt, 20-order-01.txt, 20-order-02.txt, 20-order-03.txt, 20-order-04.txt, 30-random-00.txt, 30-random-01.txt, 30-random-02.txt, 30-random-03.txt, 30-random-04.txt, 30-random-05.txt, 30-random-06.txt, 30-random-07.txt, 30-random-08.txt, 30-random-09.txt, 30-random-10.txt, 30-random-11.txt, 30-random-12.txt, 30-random-13.txt, 30-random-14.txt
Case Name Status Exec Time Memory
00-sample-00.txt AC 70 ms 60916 KB
00-sample-01.txt AC 51 ms 60920 KB
10-unique-00.txt AC 52 ms 61060 KB
10-unique-01.txt AC 55 ms 61184 KB
10-unique-02.txt AC 54 ms 61204 KB
10-unique-03.txt AC 53 ms 61044 KB
10-unique-04.txt AC 54 ms 61008 KB
20-order-00.txt AC 54 ms 61144 KB
20-order-01.txt AC 52 ms 61220 KB
20-order-02.txt AC 52 ms 61276 KB
20-order-03.txt AC 55 ms 61160 KB
20-order-04.txt AC 51 ms 61060 KB
30-random-00.txt AC 52 ms 61040 KB
30-random-01.txt AC 52 ms 61120 KB
30-random-02.txt AC 55 ms 60992 KB
30-random-03.txt AC 55 ms 61116 KB
30-random-04.txt AC 54 ms 60976 KB
30-random-05.txt AC 55 ms 61232 KB
30-random-06.txt AC 54 ms 60968 KB
30-random-07.txt AC 49 ms 61300 KB
30-random-08.txt AC 52 ms 61224 KB
30-random-09.txt AC 53 ms 61168 KB
30-random-10.txt AC 53 ms 61176 KB
30-random-11.txt AC 55 ms 60952 KB
30-random-12.txt AC 54 ms 61184 KB
30-random-13.txt AC 53 ms 61124 KB
30-random-14.txt AC 55 ms 60776 KB