UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#44094#138. NOIP2018提高组 day01 T2 moneyskylee1008ms508kbC++742b2018-11-16 11:45:122018-11-16 11:45:12

answer


详细

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

Test #1:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
2
596 31
2
492 26
2
406 29
2
650 13
2
816 16
2
21 196
2
893 23
2
8 416
2
6 194
2
23 993
2
4 949
2...

output:

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

result:

ok 20 lines

Test #2:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
2
12 648
2
210 14
2
31 465
2
276 23
2
22 572
2
11 990
2
540 30
2
23 92
2
10 675
2
479 25
2
574 21...

output:

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

result:

ok 20 lines

Test #3:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
2
375 25
2
696 29
2
347 3
2
6 538
2
24 342
2
29 696
2
437 24
2
4 92
2
10 846
2
19 407
2
264 11
2
...

output:

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

result:

ok 20 lines

Test #4:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
3
2 451 349
3
83 362 29
3
138 801 29
3
359 19 492
3
56 28 605
3
259 4 784
3
193 30 251
3
704 16 8...

output:

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

result:

ok 20 lines

Test #5:

score: 5
Accepted
time: 0ms
memory: 508kb

input:

20
3
5 20 387
3
13 872 820
3
210 840 21
3
960 983 23
3
7 424 42
3
691 17 208
3
81 588 11
3
19 209 95...

output:

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

result:

ok 20 lines

Test #6:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
3
11 49 11
3
31 946 744
3
365 21 646
3
29 26 83
3
999 27 267
3
23 276 432
3
660 527 22
3
1 164 35...

output:

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

result:

ok 20 lines

Test #7:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
4
350 798 966 14
4
854 1 659 699
4
210 830 10 590
4
820 20 76 961
4
825 740 27 945
4
2 702 249 55...

output:

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

result:

ok 20 lines

Test #8:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
4
511 775 8 341
4
560 560 28 489
4
14 497 14 563
4
312 28 866 840
4
810 102 30 533
4
28 848 8 14
...

output:

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

result:

ok 20 lines

Test #9:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
5
765 10 200 360 138
5
504 336 28 252 224
5
336 16 96 304 560
5
238 670 441 761 16
5
18 651 146 3...

output:

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

result:

ok 20 lines

Test #10:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
5
688 479 5 282 988
5
392 206 607 202 29
5
833 986 617 17 986
5
54 745 499 30 526
5
735 256 21 75...

output:

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

result:

ok 20 lines

Test #11:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
13
16 14 13 5 15 15 5 5 10 15 11 14 14
13
14 14 13 12 5 14 11 12 16 13 10 10 5
11
15 13 16 11 9 5...

output:

4
5
5
4
4
4
5
4
5
5
4
4
4
5
4
4
5
5
5
5

result:

ok 20 lines

Test #12:

score: 5
Accepted
time: 0ms
memory: 508kb

input:

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

output:

3
4
4
4
5
6
4
5
4
4
5
5
6
4
4
4
3
4
5
5

result:

ok 20 lines

Test #13:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

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

output:

4
4
5
5
4
4
5
5
4
4
4
6
5
4
4
6
3
6
5
5

result:

ok 20 lines

Test #14:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
25
37 39 35 30 35 36 38 39 39 12 38 30 34 37 38 32 36 39 12 37 37 36 24 39 40
23
31 20 36 35 40 2...

output:

9
10
8
7
9
8
8
10
11
9
7
10
11
11
10
11
8
7
8
9

result:

ok 20 lines

Test #15:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
23
32 36 26 35 34 29 28 7 21 23 25 22 27 37 39 14 22 40 33 34 38 31 23
23
18 34 27 26 25 38 24 14...

output:

7
8
8
7
12
9
9
6
6
9
8
6
8
9
8
9
11
8
9
10

result:

ok 20 lines

Test #16:

score: 5
Accepted
time: 0ms
memory: 504kb

input:

20
25
34 36 11 40 34 26 33 23 37 35 40 31 16 31 39 11 35 38 39 40 22 34 36 29 40
25
23 22 22 20 35 2...

output:

8
10
7
8
7
8
11
10
8
8
8
8
8
7
6
10
10
12
10
7

result:

ok 20 lines

Test #17:

score: 5
Accepted
time: 3ms
memory: 504kb

input:

20
91
16190 24996 24997 24781 24845 273 23478 24774 24991 10647 15644 18018 18160 24979 10374 23965 ...

output:

74
73
82
69
70
71
77
75
75
77
69
85
74
73
73
53
73
77
67
74

result:

ok 20 lines

Test #18:

score: 5
Accepted
time: 2ms
memory: 500kb

input:

20
96
24970 24988 23475 24780 23478 24891 24494 24993 24211 24985 22831 24967 23087 21404 24886 2490...

output:

72
72
83
76
84
79
75
73
84
80
79
66
79
80
74
63
81
81
78
69

result:

ok 20 lines

Test #19:

score: 5
Accepted
time: 0ms
memory: 508kb

input:

20
100
24991 24957 20897 24981 24988 24943 24633 25000 307 23237 24677 24982 24804 23580 24868 24967...

output:

84
75
83
75
75
76
30
74
87
79
82
76
82
64
32
74
80
70
73
77

result:

ok 20 lines

Test #20:

score: 5
Accepted
time: 3ms
memory: 504kb

input:

20
100
10140 24986 17690 24974 12285 24311 24454 24914 24311 22461 24877 21523 24998 23015 24990 249...

output:

73
71
82
72
83
79
77
72
75
79
77
75
76
77
78
78
70
78
78
82

result:

ok 20 lines

Extra Test:

score: 0
Extra Test Passed