UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#100254#138. NOIP2018提高组 day01 T2 moneytyf100311ms10752kbC++11638b2020-02-24 15:02:152020-02-24 15:02:15

answer


详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 5
Accepted
time: 13ms
memory: 10748kb

input:

20
2
629 748
2
276 828
2
23 524
2
80 200
2
532 677
2
571 916
2
256 512
2
260 130
2
971 20
2
129 763
...

output:

2
1
2
2
2
2
1
1
2
2
2
2
2
1
2
2
2
2
2
1

result:

ok 20 lines

Test #2:

score: 5
Accepted
time: 9ms
memory: 10752kb

input:

20
2
905 870
2
681 466
2
288 4
2
317 634
2
736 368
2
129 387
2
443 629
2
436 683
2
114 342
2
391 969...

output:

2
2
1
1
1
1
2
2
1
2
1
2
1
2
2
2
2
2
2
2

result:

ok 20 lines

Test #3:

score: 5
Accepted
time: 10ms
memory: 10748kb

input:

20
2
17 646
2
699 448
2
750 375
2
805 674
2
276 92
2
50 992
2
898 359
2
696 196
2
449 703
2
225 112
...

output:

1
2
1
2
1
2
2
2
2
2
1
2
1
2
1
2
2
1
2
2

result:

ok 20 lines

Test #4:

score: 5
Accepted
time: 11ms
memory: 10748kb

input:

20
3
170 962 891
3
162 4 379
3
250 615 750
3
570 46 299
3
415 634 110
3
564 297 987
3
256 396 992
3
...

output:

3
3
2
3
3
3
3
3
3
3
2
3
2
2
2
3
3
1
2
2

result:

ok 20 lines

Test #5:

score: 5
Accepted
time: 9ms
memory: 10752kb

input:

20
3
259 396 191
3
900 300 786
3
212 233 141
3
622 311 933
3
657 539 994
3
6 562 5
3
304 724 240
3
6...

output:

3
2
3
1
3
2
3
2
1
3
3
3
2
1
2
2
2
3
1
3

result:

ok 20 lines

Test #6:

score: 5
Accepted
time: 9ms
memory: 10752kb

input:

20
3
784 196 588
3
969 576 288
3
870 846 563
3
35 910 789
3
445 768 8
3
315 560 172
3
904 647 452
3
...

output:

1
2
3
2
2
3
2
3
2
3
3
2
3
2
1
2
1
2
2
3

result:

ok 20 lines

Test #7:

score: 5
Accepted
time: 10ms
memory: 10744kb

input:

20
4
743 105 527 345
4
565 895 330 990
4
163 815 326 493
4
733 403 806 891
4
921 111 191 543
4
771 4...

output:

4
2
2
3
4
2
3
2
4
1
2
4
4
4
1
3
3
4
2
2

result:

ok 20 lines

Test #8:

score: 5
Accepted
time: 12ms
memory: 10752kb

input:

20
4
642 325 650 967
4
807 582 55 916
4
59 555 354 673
4
405 369 81 764
4
429 910 228 485
4
451 902 ...

output:

2
4
2
3
4
3
3
4
4
4
2
2
3
1
4
4
4
3
2
2

result:

ok 20 lines

Test #9:

score: 5
Accepted
time: 16ms
memory: 10748kb

input:

20
5
950 390 115 755 80
5
717 896 952 504 448
5
888 883 386 222 111
5
271 807 896 542 740
5
329 567 ...

output:

2
3
2
4
3
4
4
4
1
5
5
5
4
2
4
4
4
4
4
2

result:

ok 20 lines

Test #10:

score: 5
Accepted
time: 16ms
memory: 10748kb

input:

20
5
329 940 47 611 685
5
49 98 325 895 227
5
12 353 326 684 566
5
32 325 970 320 453
5
959 979 111 ...

output:

2
2
3
2
5
3
4
3
3
5
4
5
3
4
3
5
3
5
2
5

result:

ok 20 lines

Test #11:

score: 5
Accepted
time: 16ms
memory: 10748kb

input:

20
8
16 7 15 9 12 8 14 10
8
10 14 16 15 12 13 8 4
9
11 13 5 12 14 10 15 9 7
8
9 13 14 7 11 16 12 10
...

output:

5
4
5
6
4
4
4
4
4
4
4
4
5
4
5
4
4
4
4
5

result:

ok 20 lines

Test #12:

score: 5
Accepted
time: 11ms
memory: 10752kb

input:

20
9
8 12 10 4 14 11 9 13 16
8
7 15 13 14 5 16 11 12
9
14 4 15 12 10 13 11 9 8
8
16 9 6 14 15 12 10 ...

output:

4
4
4
5
4
5
4
4
4
4
4
5
4
6
6
4
4
6
5
4

result:

ok 20 lines

Test #13:

score: 5
Accepted
time: 17ms
memory: 10752kb

input:

20
8
13 16 10 15 14 11 9 5
10
7 6 10 5 4 9 15 16 12 11
8
15 11 14 9 10 16 13 5
9
7 15 10 5 14 16 12 ...

output:

4
4
4
4
4
4
4
5
5
4
4
4
4
4
5
4
6
4
4
5

result:

ok 20 lines

Test #14:

score: 5
Accepted
time: 12ms
memory: 10748kb

input:

20
16
37 30 36 40 33 29 27 18 21 23 35 25 38 28 31 39
20
38 31 36 7 10 35 40 39 37 25 30 28 22 26 16...

output:

14
5
3
9
7
3
10
5
4
4
8
9
4
10
2
8
4
3
6
4

result:

ok 20 lines

Test #15:

score: 5
Accepted
time: 13ms
memory: 10752kb

input:

20
18
37 36 40 29 26 38 22 32 15 23 35 33 39 12 28 31 27 24
19
29 34 38 6 33 40 39 36 21 27 25 19 23...

output:

10
3
8
6
10
4
11
4
7
7
7
7
6
11
4
11
9
4
5
3

result:

ok 20 lines

Test #16:

score: 5
Accepted
time: 12ms
memory: 10748kb

input:

20
22
32 30 23 19 33 24 28 22 36 25 35 16 40 7 14 21 10 38 34 39 27 29
22
29 35 33 25 9 10 34 32 39 ...

output:

6
6
3
3
2
3
5
10
6
6
5
7
8
5
6
7
8
10
6
7

result:

ok 20 lines

Test #17:

score: 5
Accepted
time: 30ms
memory: 10748kb

input:

20
92
10288 2684 13484 10687 9690 16088 7887 6087 2289 6687 13689 14686 12284 8889 2484 7085 14484 1...

output:

63
100
39
51
78
22
59
91
98
36
42
100
64
58
58
79
44
24
13
54

result:

ok 20 lines

Test #18:

score: 5
Accepted
time: 30ms
memory: 10748kb

input:

20
95
19749 10343 2743 13551 10743 9742 16151 7951 6144 2343 6746 13748 14749 12348 8945 2542 7143 1...

output:

45
40
91
32
88
46
70
60
44
43
47
24
33
43
98
44
100
73
46
87

result:

ok 20 lines

Test #19:

score: 5
Accepted
time: 30ms
memory: 10752kb

input:

20
92
10630 3021 13817 11024 10028 16426 8217 6423 2624 7019 14019 15027 12618 9217 2826 7429 14823 ...

output:

76
71
91
54
43
25
28
36
42
92
65
54
48
37
43
76
94
63
29
53

result:

ok 20 lines

Test #20:

score: 5
Accepted
time: 25ms
memory: 10752kb

input:

20
92
9818 2216 13014 10214 9213 15618 7412 5617 1814 6220 13216 14212 11814 8413 2019 6616 14021 13...

output:

65
32
93
34
73
96
32
39
58
72
52
68
71
28
93
65
54
46
44
47

result:

ok 20 lines

Extra Test:

score: 0
Extra Test Passed