Submission details
Task:Manhattan sightseeing
Sender:aalto26ew_003
Submission time:2026-09-30 17:41:12 +0300
Language:Python3 (PyPy3)
Status:READY
Result:
Test results
testverdicttime
#10.04 sdetails
#20.04 sdetails
#30.04 sdetails
#40.04 sdetails
#50.04 sdetails
#60.04 sdetails
#70.04 sdetails
#80.04 sdetails
#90.04 sdetails
#100.04 sdetails
#110.04 sdetails
#120.04 sdetails
#130.04 sdetails
#140.04 sdetails
#150.04 sdetails
#160.04 sdetails
#170.04 sdetails
#180.04 sdetails
#190.04 sdetails
#200.04 sdetails
#210.04 sdetails
#220.04 sdetails
#230.04 sdetails
#240.04 sdetails
#250.04 sdetails
#260.04 sdetails
#270.04 sdetails
#280.04 sdetails
#290.04 sdetails
#300.04 sdetails
#310.04 sdetails
#320.04 sdetails
#330.04 sdetails
#340.04 sdetails
#350.04 sdetails
#360.04 sdetails
#370.04 sdetails
#380.04 sdetails
#390.04 sdetails
#400.04 sdetails
#410.04 sdetails
#420.04 sdetails
#430.04 sdetails
#440.04 sdetails
#450.04 sdetails
#460.04 sdetails
#470.04 sdetails
#480.04 sdetails
#490.04 sdetails
#500.04 sdetails
#510.04 sdetails
#520.04 sdetails
#530.04 sdetails
#540.04 sdetails
#550.04 sdetails
#560.04 sdetails
#570.04 sdetails
#580.06 sdetails
#590.06 sdetails
#600.06 sdetails
#610.06 sdetails
#620.06 sdetails
#630.06 sdetails
#640.06 sdetails
#650.06 sdetails
#660.06 sdetails
#670.06 sdetails
#680.20 sdetails
#690.20 sdetails
#700.20 sdetails
#710.20 sdetails
#720.20 sdetails
#730.20 sdetails
#740.20 sdetails
#750.20 sdetails
#760.20 sdetails
#770.20 sdetails

Code

def main():
    n = int(input())
    people = []
    sol = [0,0]
    for _ in range(n):
        person = [int(x) for x in input().split()]
        people.append(person)

    sol = people[0]
    for i in range(1,n):
        sol[0] = sol[0] + people[i][0]
        sol[1] = sol[1] + people[i][1]
        print(f"{i}: {sol}")


    print(f"{round(sol[0]/n)}, {round(sol[1]/n)}")
main()

Test details

Test 1

Verdict:

input
1
7 7

correct output
7 7

user output
7, 7

Test 2

Verdict:

input
1
1 5

correct output
1 5

user output
1, 5

Test 3

Verdict:

input
2
8 1
3 3

correct output
5 2

user output
1: [11, 4]
6, 2

Test 4

Verdict:

input
2
1 5
3 2

correct output
2 3

user output
1: [4, 7]
2, 4

Test 5

Verdict:

input
3
6 3
2 3
6 1

correct output
4 2

user output
1: [8, 6]
2: [14, 7]
5, 2

Test 6

Verdict:

input
3
9 6
3 8
9 4

correct output
6 6

user output
1: [12, 14]
2: [21, 18]
7, 6

Test 7

Verdict:

input
3
8 7
8 6
8 7

correct output
8 6

user output
1: [16, 13]
2: [24, 20]
8, 7

Test 8

Verdict:

input
4
3 6
9 9
7 9
5 1

correct output
6 6

user output
1: [12, 15]
2: [19, 24]
3: [24, 25]
6, 6

Test 9

Verdict:

input
4
3 1
2 9
8 9
6 8

correct output
4 6

user output
1: [5, 10]
2: [13, 19]
3: [19, 27]
5, 7

Test 10

Verdict:

input
4
6 5
8 3
9 3
7 9

correct output
7 5

user output
1: [14, 8]
2: [23, 11]
3: [30, 20]
8, 5

Test 11

Verdict:

input
4
2 8
9 7
5 1
3 7

correct output
5 6

user output
1: [11, 15]
2: [16, 16]
3: [19, 23]
5, 6

Test 12

Verdict:

input
4
5 5
6 3
8 5
2 4

correct output
4 5

user output
1: [11, 8]
2: [19, 13]
3: [21, 17]
5, 4

Test 13

Verdict:

input
4
7 3
8 7
3 2
8 6

correct output
6 4

user output
1: [15, 10]
2: [18, 12]
3: [26, 18]
6, 4

Test 14

Verdict:

input
4
1 3
7 6
2 6
3 4

correct output
3 5

user output
1: [8, 9]
2: [10, 15]
3: [13, 19]
3, 5

Test 15

Verdict:

input
4
7 8
3 1
2 3
3 2

correct output
4 5

user output
1: [10, 9]
2: [12, 12]
3: [15, 14]
4, 4

Test 16

Verdict:

input
4
2 7
9 1
3 5
2 1

correct output
3 2

user output
1: [11, 8]
2: [14, 13]
3: [16, 14]
4, 4

Test 17

Verdict:

input
4
7 7
2 2
7 3
1 8

correct output
4 5

user output
1: [9, 9]
2: [16, 12]
3: [17, 20]
4, 5

Test 18

Verdict:

input
5
5 6
7 8
6 8
5 8
...

correct output
5 7

user output
1: [12, 14]
2: [18, 22]
3: [23, 30]
4: [27, 36]
5, 7

Test 19

Verdict:

input
5
4 9
7 9
1 2
3 9
...

correct output
3 6

user output
1: [11, 18]
2: [12, 20]
3: [15, 29]
4: [17, 32]
3, 6

Test 20

Verdict:

input
5
4 2
1 9
5 9
4 5
...

correct output
3 6

user output
1: [5, 11]
2: [10, 20]
3: [14, 25]
4: [18, 28]
4, 6

Test 21

Verdict:

input
5
5 1
7 8
3 2
5 6
...

correct output
6 4

user output
1: [12, 9]
2: [15, 11]
3: [20, 17]
4: [29, 21]
6, 4

Test 22

Verdict:

input
5
9 9
5 2
9 8
7 6
...

correct output
6 6

user output
1: [14, 11]
2: [23, 19]
3: [30, 25]
4: [37, 31]
7, 6

Test 23

Verdict:

input
5
2 1
8 8
2 4
9 9
...

correct output
5 5

user output
1: [10, 9]
2: [12, 13]
3: [21, 22]
4: [26, 23]
5, 5

Test 24

Verdict:

input
5
9 9
3 2
8 1
1 4
...

correct output
5 5

user output
1: [12, 11]
2: [20, 12]
3: [21, 16]
4: [22, 25]
4, 5

Test 25

Verdict:

input
5
1 3
8 3
4 9
7 5
...

correct output
4 4

user output
1: [9, 6]
2: [13, 15]
3: [20, 20]
4: [29, 23]
6, 5

Test 26

Verdict:

input
5
8 1
9 3
8 4
5 8
...

correct output
6 4

user output
1: [17, 4]
2: [25, 8]
3: [30, 16]
4: [33, 20]
7, 4

Test 27

Verdict:

input
5
1 4
5 5
5 1
2 3
...

correct output
3 3

user output
1: [6, 9]
2: [11, 10]
3: [13, 13]
4: [15, 14]
3, 3

Test 28

Verdict:

input
10
5 6
7 8
6 8
5 8
...

correct output
6 4

user output
1: [12, 14]
2: [18, 22]
3: [23, 30]
4: [27, 36]
5: [33, 40]
...

Test 29

Verdict:

input
10
4 9
7 9
1 2
3 9
...

correct output
3 6

user output
1: [11, 18]
2: [12, 20]
3: [15, 29]
4: [17, 32]
5: [18, 36]
...

Test 30

Verdict:

input
10
4 2
1 9
5 9
4 5
...

correct output
3 5

user output
1: [5, 11]
2: [10, 20]
3: [14, 25]
4: [18, 28]
5: [21, 30]
...

Test 31

Verdict:

input
10
5 1
7 8
3 2
5 6
...

correct output
5 3

user output
1: [12, 9]
2: [15, 11]
3: [20, 17]
4: [29, 21]
5: [38, 22]
...

Test 32

Verdict:

input
10
9 9
5 2
9 8
7 6
...

correct output
5 6

user output
1: [14, 11]
2: [23, 19]
3: [30, 25]
4: [37, 31]
5: [39, 33]
...

Test 33

Verdict:

input
10
2 1
8 8
2 4
9 9
...

correct output
4 6

user output
1: [10, 9]
2: [12, 13]
3: [21, 22]
4: [26, 23]
5: [32, 27]
...

Test 34

Verdict:

input
10
9 9
3 2
8 1
1 4
...

correct output
5 5

user output
1: [12, 11]
2: [20, 12]
3: [21, 16]
4: [22, 25]
5: [28, 26]
...

Test 35

Verdict:

input
10
1 3
8 3
4 9
7 5
...

correct output
4 4

user output
1: [9, 6]
2: [13, 15]
3: [20, 20]
4: [29, 23]
5: [34, 26]
...

Test 36

Verdict:

input
10
8 1
9 3
8 4
5 8
...

correct output
5 4

user output
1: [17, 4]
2: [25, 8]
3: [30, 16]
4: [33, 20]
5: [34, 26]
...

Test 37

Verdict:

input
10
1 4
5 5
5 1
2 3
...

correct output
2 3

user output
1: [6, 9]
2: [11, 10]
3: [13, 13]
4: [15, 14]
5: [17, 22]
...

Test 38

Verdict:

input
100
589284012 636562060
767928734 906523441
647212241 921212095
585063857 909729626
...

correct output
485094485 480883850

user output
1: [1357212746, 1543085501]
2: [2004424987, 2464297596]
3: [2589488844, 3374027222]
4: [3044384719, 4043573643]
5: [3737908245, 4456300360]
...

Test 39

Verdict:

input
100
447773962 773442532
122816 137572579
324627123 157577940
253498609 99147813
...

correct output
534004334 480422569

user output
1: [447896778, 911015111]
2: [772523901, 1068593051]
3: [1026022510, 1167740864]
4: [1451847823, 1367736244]
5: [1868363809, 1738779248]
...

Test 40

Verdict:

input
100
468145963 198730372
27838076 590195590
467423861 520495379
451366491 344173378
...

correct output
505241702 553085427

user output
1: [495984039, 788925962]
2: [963407900, 1309421341]
3: [1414774391, 1653594719]
4: [1769468704, 1819409100]
5: [1989208504, 2569807199]
...

Test 41

Verdict:

input
100
591414747 75940263
760367935 901888417
312356591 130275571
548496961 611293382
...

correct output
512794087 502710728

user output
1: [1351782682, 977828680]
2: [1664139273, 1108104251]
3: [2212636234, 1719397633]
4: [3171430730, 2188689318]
5: [4133818109, 2208819841]
...

Test 42

Verdict:

input
100
967034924 587586158
185430194 918715995
767527830 653946995
749180621 641621091
...

correct output
467598795 543711879

user output
1: [1152465118, 1506302153]
2: [1919992948, 2160249148]
3: [2669173569, 2801870239]
4: [2901197904, 2953766239]
5: [3142259308, 2960455927]
...

Test 43

Verdict:

input
100
238363353 59249204
934941692 892631472
221963002 390559518
986350949 524427523
...

correct output
511067632 465512739

user output
1: [1173305045, 951880676]
2: [1395268047, 1342440194]
3: [2381618996, 1866867717]
4: [2478063598, 2523722687]
5: [2904056286, 3346109990]
...

Test 44

Verdict:

input
100
958701283 356460601
224848374 881788059
68992860 44771412
397401947 115595477
...

correct output
542243492 445601576

user output
1: [1183549657, 1238248660]
2: [1252542517, 1283020072]
3: [1649944464, 1398615549]
4: [2288876759, 1505422462]
5: [2857763818, 2158766034]
...

Test 45

Verdict:

input
100
81935404 244103474
837431431 342493822
470738321 776814822
489180570 330726191
...

correct output
530569655 531085018

user output
1: [919366835, 586597296]
2: [1390105156, 1363412118]
3: [1879285726, 1694138309]
4: [2457491266, 1977467467]
5: [2995565269, 2070607522]
...

Test 46

Verdict:

input
100
937837681 11934038
257096283 933290530
405355767 570001955
876668629 249890139
...

correct output
489890640 449453691

user output
1: [1194933964, 945224568]
2: [1600289731, 1515226523]
3: [2476958360, 1765116662]
4: [2930454088, 1777356035]
5: [3587619876, 2239568409]
...

Test 47

Verdict:

input
100
11139168 391337048
538883744 535937150
532332526 8099343
143698367 339543270
...

correct output
478577648 507747978

user output
1: [550022912, 927274198]
2: [1082355438, 935373541]
3: [1226053805, 1274916811]
4: [1378644429, 1289221212]
5: [1613320019, 2231130314]
...

Test 48

Verdict:

input
200
589284012 636562060
767928734 906523441
647212241 921212095
585063857 909729626
...

correct output
484364945 481613390

user output
1: [1357212746, 1543085501]
2: [2004424987, 2464297596]
3: [2589488844, 3374027222]
4: [3044384719, 4043573643]
5: [3737908245, 4456300360]
...

Test 49

Verdict:

input
200
447773962 773442532
122816 137572579
324627123 157577940
253498609 99147813
...

correct output
528519875 485907028

user output
1: [447896778, 911015111]
2: [772523901, 1068593051]
3: [1026022510, 1167740864]
4: [1451847823, 1367736244]
5: [1868363809, 1738779248]
...

Test 50

Verdict:

input
200
468145963 198730372
27838076 590195590
467423861 520495379
451366491 344173378
...

correct output
482800416 512251704

user output
1: [495984039, 788925962]
2: [963407900, 1309421341]
3: [1414774391, 1653594719]
4: [1769468704, 1819409100]
5: [1989208504, 2569807199]
...

Test 51

Verdict:

input
200
591414747 75940263
760367935 901888417
312356591 130275571
548496961 611293382
...

correct output
492010316 481926957

user output
1: [1351782682, 977828680]
2: [1664139273, 1108104251]
3: [2212636234, 1719397633]
4: [3171430730, 2188689318]
5: [4133818109, 2208819841]
...

Test 52

Verdict:

input
200
967034924 587586158
185430194 918715995
767527830 653946995
749180621 641621091
...

correct output
473998199 537312475

user output
1: [1152465118, 1506302153]
2: [1919992948, 2160249148]
3: [2669173569, 2801870239]
4: [2901197904, 2953766239]
5: [3142259308, 2960455927]
...

Test 53

Verdict:

input
200
238363353 59249204
934941692 892631472
221963002 390559518
986350949 524427523
...

correct output
535342378 489787485

user output
1: [1173305045, 951880676]
2: [1395268047, 1342440194]
3: [2381618996, 1866867717]
4: [2478063598, 2523722687]
5: [2904056286, 3346109990]
...

Test 54

Verdict:

input
200
958701283 356460601
224848374 881788059
68992860 44771412
397401947 115595477
...

correct output
541418009 466378372

user output
1: [1183549657, 1238248660]
2: [1252542517, 1283020072]
3: [1649944464, 1398615549]
4: [2288876759, 1505422462]
5: [2857763818, 2158766034]
...

Test 55

Verdict:

input
200
81935404 244103474
837431431 342493822
470738321 776814822
489180570 330726191
...

correct output
471167122 531480104

user output
1: [919366835, 586597296]
2: [1390105156, 1363412118]
3: [1879285726, 1694138309]
4: [2457491266, 1977467467]
5: [2995565269, 2070607522]
...

Test 56

Verdict:

input
200
937837681 11934038
257096283 933290530
405355767 570001955
876668629 249890139
...

correct output
480355638 503030740

user output
1: [1194933964, 945224568]
2: [1600289731, 1515226523]
3: [2476958360, 1765116662]
4: [2930454088, 1777356035]
5: [3587619876, 2239568409]
...

Test 57

Verdict:

input
200
11139168 391337048
538883744 535937150
532332526 8099343
143698367 339543270
...

correct output
488427758 499286474

user output
1: [550022912, 927274198]
2: [1082355438, 935373541]
3: [1226053805, 1274916811]
4: [1378644429, 1289221212]
5: [1613320019, 2231130314]
...

Test 58

Verdict:

input
1000
589284012 636562060
767928734 906523441
647212241 921212095
585063857 909729626
...

correct output
497956378 486069415

user output
1: [1357212746, 1543085501]
2: [2004424987, 2464297596]
3: [2589488844, 3374027222]
4: [3044384719, 4043573643]
5: [3737908245, 4456300360]
...

Test 59

Verdict:

input
1000
447773962 773442532
122816 137572579
324627123 157577940
253498609 99147813
...

correct output
494047134 512602597

user output
1: [447896778, 911015111]
2: [772523901, 1068593051]
3: [1026022510, 1167740864]
4: [1451847823, 1367736244]
5: [1868363809, 1738779248]
...

Test 60

Verdict:

input
1000
468145963 198730372
27838076 590195590
467423861 520495379
451366491 344173378
...

correct output
497994845 501561827

user output
1: [495984039, 788925962]
2: [963407900, 1309421341]
3: [1414774391, 1653594719]
4: [1769468704, 1819409100]
5: [1989208504, 2569807199]
...

Test 61

Verdict:

input
1000
591414747 75940263
760367935 901888417
312356591 130275571
548496961 611293382
...

correct output
483630640 485770068

user output
1: [1351782682, 977828680]
2: [1664139273, 1108104251]
3: [2212636234, 1719397633]
4: [3171430730, 2188689318]
5: [4133818109, 2208819841]
...

Test 62

Verdict:

input
1000
967034924 587586158
185430194 918715995
767527830 653946995
749180621 641621091
...

correct output
484246063 524460613

user output
1: [1152465118, 1506302153]
2: [1919992948, 2160249148]
3: [2669173569, 2801870239]
4: [2901197904, 2953766239]
5: [3142259308, 2960455927]
...

Test 63

Verdict:

input
1000
238363353 59249204
934941692 892631472
221963002 390559518
986350949 524427523
...

correct output
482084242 498558858

user output
1: [1173305045, 951880676]
2: [1395268047, 1342440194]
3: [2381618996, 1866867717]
4: [2478063598, 2523722687]
5: [2904056286, 3346109990]
...

Test 64

Verdict:

input
1000
958701283 356460601
224848374 881788059
68992860 44771412
397401947 115595477
...

correct output
517911118 490640905

user output
1: [1183549657, 1238248660]
2: [1252542517, 1283020072]
3: [1649944464, 1398615549]
4: [2288876759, 1505422462]
5: [2857763818, 2158766034]
...

Test 65

Verdict:

input
1000
81935404 244103474
837431431 342493822
470738321 776814822
489180570 330726191
...

correct output
516584474 493117116

user output
1: [919366835, 586597296]
2: [1390105156, 1363412118]
3: [1879285726, 1694138309]
4: [2457491266, 1977467467]
5: [2995565269, 2070607522]
...

Test 66

Verdict:

input
1000
937837681 11934038
257096283 933290530
405355767 570001955
876668629 249890139
...

correct output
505395058 493501350

user output
1: [1194933964, 945224568]
2: [1600289731, 1515226523]
3: [2476958360, 1765116662]
4: [2930454088, 1777356035]
5: [3587619876, 2239568409]
...

Test 67

Verdict:

input
1000
11139168 391337048
538883744 535937150
532332526 8099343
143698367 339543270
...

correct output
487882612 490398120

user output
1: [550022912, 927274198]
2: [1082355438, 935373541]
3: [1226053805, 1274916811]
4: [1378644429, 1289221212]
5: [1613320019, 2231130314]
...

Test 68

Verdict:

input
100000
589284012 636562060
767928734 906523441
647212241 921212095
585063857 909729626
...

correct output
499279419 501141977

user output
1: [1357212746, 1543085501]
2: [2004424987, 2464297596]
3: [2589488844, 3374027222]
4: [3044384719, 4043573643]
5: [3737908245, 4456300360]
...

Test 69

Verdict:

input
100000
447773962 773442532
122816 137572579
324627123 157577940
253498609 99147813
...

correct output
499924856 502172257

user output
1: [447896778, 911015111]
2: [772523901, 1068593051]
3: [1026022510, 1167740864]
4: [1451847823, 1367736244]
5: [1868363809, 1738779248]
...

Test 70

Verdict:

input
100000
468145963 198730372
27838076 590195590
467423861 520495379
451366491 344173378
...

correct output
501207411 500741195

user output
1: [495984039, 788925962]
2: [963407900, 1309421341]
3: [1414774391, 1653594719]
4: [1769468704, 1819409100]
5: [1989208504, 2569807199]
...

Test 71

Verdict:

input
100000
591414747 75940263
760367935 901888417
312356591 130275571
548496961 611293382
...

correct output
500378568 501125669

user output
1: [1351782682, 977828680]
2: [1664139273, 1108104251]
3: [2212636234, 1719397633]
4: [3171430730, 2188689318]
5: [4133818109, 2208819841]
...

Test 72

Verdict:

input
100000
967034924 587586158
185430194 918715995
767527830 653946995
749180621 641621091
...

correct output
501286586 498468528

user output
1: [1152465118, 1506302153]
2: [1919992948, 2160249148]
3: [2669173569, 2801870239]
4: [2901197904, 2953766239]
5: [3142259308, 2960455927]
...

Test 73

Verdict:

input
100000
238363353 59249204
934941692 892631472
221963002 390559518
986350949 524427523
...

correct output
500851969 501496653

user output
1: [1173305045, 951880676]
2: [1395268047, 1342440194]
3: [2381618996, 1866867717]
4: [2478063598, 2523722687]
5: [2904056286, 3346109990]
...

Test 74

Verdict:

input
100000
958701283 356460601
224848374 881788059
68992860 44771412
397401947 115595477
...

correct output
501129059 499760141

user output
1: [1183549657, 1238248660]
2: [1252542517, 1283020072]
3: [1649944464, 1398615549]
4: [2288876759, 1505422462]
5: [2857763818, 2158766034]
...

Test 75

Verdict:

input
100000
81935404 244103474
837431431 342493822
470738321 776814822
489180570 330726191
...

correct output
501369501 501175764

user output
1: [919366835, 586597296]
2: [1390105156, 1363412118]
3: [1879285726, 1694138309]
4: [2457491266, 1977467467]
5: [2995565269, 2070607522]
...

Test 76

Verdict:

input
100000
937837681 11934038
257096283 933290530
405355767 570001955
876668629 249890139
...

correct output
499822684 498958448

user output
1: [1194933964, 945224568]
2: [1600289731, 1515226523]
3: [2476958360, 1765116662]
4: [2930454088, 1777356035]
5: [3587619876, 2239568409]
...

Test 77

Verdict:

input
100000
11139168 391337048
538883744 535937150
532332526 8099343
143698367 339543270
...

correct output
500231553 501043880

user output
1: [550022912, 927274198]
2: [1082355438, 935373541]
3: [1226053805, 1274916811]
4: [1378644429, 1289221212]
5: [1613320019, 2231130314]
...