Task: | 3-sum |
Sender: | Atreya Ray |
Submission time: | 2020-09-10 17:28:30 +0300 |
Language: | Python3 (CPython3) |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.02 s | details |
#2 | WRONG ANSWER | 0.02 s | details |
#3 | WRONG ANSWER | 0.02 s | details |
#4 | WRONG ANSWER | 0.02 s | details |
#5 | WRONG ANSWER | 0.02 s | details |
#6 | WRONG ANSWER | 0.02 s | details |
#7 | WRONG ANSWER | 0.02 s | details |
#8 | WRONG ANSWER | 0.02 s | details |
#9 | WRONG ANSWER | 0.02 s | details |
#10 | WRONG ANSWER | 0.02 s | details |
#11 | WRONG ANSWER | 0.02 s | details |
#12 | WRONG ANSWER | 0.02 s | details |
#13 | WRONG ANSWER | 0.02 s | details |
#14 | WRONG ANSWER | 0.02 s | details |
#15 | WRONG ANSWER | 0.02 s | details |
#16 | WRONG ANSWER | 0.02 s | details |
#17 | WRONG ANSWER | 0.02 s | details |
#18 | WRONG ANSWER | 0.03 s | details |
#19 | WRONG ANSWER | 0.02 s | details |
#20 | WRONG ANSWER | 0.02 s | details |
#21 | WRONG ANSWER | 0.02 s | details |
#22 | WRONG ANSWER | 0.02 s | details |
#23 | WRONG ANSWER | 0.02 s | details |
#24 | WRONG ANSWER | 0.02 s | details |
#25 | WRONG ANSWER | 0.02 s | details |
#26 | WRONG ANSWER | 0.03 s | details |
#27 | WRONG ANSWER | 0.02 s | details |
#28 | WRONG ANSWER | 0.02 s | details |
Code
def three_highest(a) : for i in range(1,len(a)) : print('hello') flag = a[i] j = i while( j > 0 and a[j-1] > flag) : a[j] = a[j-1] j -= 1 a[j] = flag print(a) return a[-3:] def main(): input('') arr = input('').split(' ') list = [int(x) for x in arr] print(three_highest(list)) if __name__ == "__main__": main()
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
3 -702 391 288 |
correct output |
---|
-702 391 288 |
user output |
---|
hello hello [-702, 288, 391] [-702, 288, 391] |
Test 2
Verdict: WRONG ANSWER
input |
---|
3 -609 886 -448 |
correct output |
---|
-609 886 -448 |
user output |
---|
hello hello [-609, -448, 886] [-609, -448, 886] |
Test 3
Verdict: WRONG ANSWER
input |
---|
3 484 -459 605 |
correct output |
---|
484 -459 605 |
user output |
---|
hello hello [-459, 484, 605] [-459, 484, 605] |
Test 4
Verdict: WRONG ANSWER
input |
---|
10 491 934 -395 -873 -822 447 -90... |
correct output |
---|
491 934 447 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 5
Verdict: WRONG ANSWER
input |
---|
10 -293 853 267 -762 -647 843 35 ... |
correct output |
---|
853 843 744 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 6
Verdict: WRONG ANSWER
input |
---|
10 -389 -908 441 187 993 -68 -593... |
correct output |
---|
441 187 993 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 7
Verdict: WRONG ANSWER
input |
---|
4 -195 251 -11 423 |
correct output |
---|
251 -11 423 |
user output |
---|
hello hello hello [-195, -11, 251, 423] [-11, 251, 423] |
Test 8
Verdict: WRONG ANSWER
input |
---|
4 -522 -222 -909 294 |
correct output |
---|
-522 -222 294 |
user output |
---|
hello hello hello [-909, -522, -222, 294] [-522, -222, 294] |
Test 9
Verdict: WRONG ANSWER
input |
---|
4 141 764 -262 3 |
correct output |
---|
141 764 3 |
user output |
---|
hello hello hello [-262, 3, 141, 764] [3, 141, 764] |
Test 10
Verdict: WRONG ANSWER
input |
---|
5 669 -567 -224 160 194 |
correct output |
---|
669 160 194 |
user output |
---|
hello hello hello hello [-567, -224, 160, 194, 669] ... |
Test 11
Verdict: WRONG ANSWER
input |
---|
5 294 783 -60 -637 126 |
correct output |
---|
294 783 126 |
user output |
---|
hello hello hello hello [-637, -60, 126, 294, 783] ... |
Test 12
Verdict: WRONG ANSWER
input |
---|
5 -941 391 -339 -982 808 |
correct output |
---|
391 -339 808 |
user output |
---|
hello hello hello hello [-982, -941, -339, 391, 808] ... |
Test 13
Verdict: WRONG ANSWER
input |
---|
11 726 997 -588 -186 465 472 -865... |
correct output |
---|
726 997 472 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 14
Verdict: WRONG ANSWER
input |
---|
11 -346 950 -522 106 278 265 531 ... |
correct output |
---|
950 531 678 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 15
Verdict: WRONG ANSWER
input |
---|
11 633 -52 -771 449 409 684 -516 ... |
correct output |
---|
633 449 684 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 16
Verdict: WRONG ANSWER
input |
---|
57 714 -738 -127 -549 613 11 263 ... |
correct output |
---|
880 887 947 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 17
Verdict: WRONG ANSWER
input |
---|
57 -599 -338 -960 581 -979 -85 -1... |
correct output |
---|
830 988 852 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 18
Verdict: WRONG ANSWER
input |
---|
57 -346 -990 -893 -109 876 438 -5... |
correct output |
---|
876 910 885 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 19
Verdict: WRONG ANSWER
input |
---|
99 621 189 655 890 -48 -440 276 6... |
correct output |
---|
945 962 994 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 20
Verdict: WRONG ANSWER
input |
---|
99 -617 799 -960 436 725 -177 -30... |
correct output |
---|
976 930 968 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 21
Verdict: WRONG ANSWER
input |
---|
99 -34 722 -880 -572 -241 415 -28... |
correct output |
---|
944 893 930 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 22
Verdict: WRONG ANSWER
input |
---|
100 -992 368 517 -516 -307 -813 -3... |
correct output |
---|
987 983 978 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 23
Verdict: WRONG ANSWER
input |
---|
100 -410 683 -411 -720 -559 -997 4... |
correct output |
---|
996 997 1000 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 24
Verdict: WRONG ANSWER
input |
---|
100 42 -652 -295 -94 -213 -974 658... |
correct output |
---|
960 997 933 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 25
Verdict: WRONG ANSWER
input |
---|
100 230 16 1000 314 599 242 -921 4... |
correct output |
---|
1000 999 998 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 26
Verdict: WRONG ANSWER
input |
---|
100 -557 -203 -490 -20 -187 -727 -... |
correct output |
---|
-20 -12 -6 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 27
Verdict: WRONG ANSWER
input |
---|
100 -857 -525 -888 -592 -468 -378 ... |
correct output |
---|
-1 -16 -34 |
user output |
---|
hello hello hello hello hello ... Truncated |
Test 28
Verdict: WRONG ANSWER
input |
---|
100 -985 -939 -972 -976 -936 -971 ... |
correct output |
---|
-900 -901 -902 |
user output |
---|
hello hello hello hello hello ... Truncated |