QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#95195#5470. Hasty Santa ClausZhaoZiLongWA 2ms3516kbC++171.4kb2023-04-09 11:55:042023-04-09 11:55:10

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 3408kb

input:

5 1
23 25
23 27
24 25
25 25
25 26

output:

23
27
24
25
26

result:

ok ok

Test #2:

score: 0
Accepted
time: 2ms
memory: 3328kb

input:

7 2
1 31
1 31
1 31
1 31
1 31
1 31
1 31

output:

31
31
30
30
29
29
28

result:

ok ok

Test #3:

score: 0
Accepted
time: 2ms
memory: 3348kb

input:

6 2
24 25
24 25
24 25
25 26
25 26
25 26

output:

25
24
24
26
26
25

result:

ok ok

Test #4:

score: 0
Accepted
time: 2ms
memory: 3516kb

input:

20 5
9 26
7 29
7 30
4 30
4 27
19 30
8 27
13 25
6 29
1 25
8 31
2 29
13 25
9 26
8 31
1 28
8 26
3 26
5 25
1 28

output:

26
29
30
30
27
30
27
25
29
25
31
29
25
26
31
28
26
26
25
28

result:

ok ok

Test #5:

score: -100
Wrong Answer
time: 1ms
memory: 3332kb

input:

100 5
9 25
2 30
2 31
4 29
2 25
1 27
7 26
3 25
15 30
2 26
9 26
2 30
6 30
24 31
7 28
15 27
2 29
23 31
18 29
23 31
1 31
2 27
7 29
2 27
23 31
16 31
17 31
10 29
4 30
3 26
2 26
19 28
1 30
8 30
4 31
10 29
1 31
22 30
6 29
3 26
3 30
5 28
1 31
9 28
2 30
2 26
13 30
4 25
2 27
1 25
5 27
5 26
9 27
1 28
19 31
5 31...

output:

13
24
27
20
12
16
15
13
26
14
16
23
25
31
18
17
20
31
23
31
27
16
21
16
31
30
30
22
24
14
14
19
23
25
28
22
27
26
20
14
24
18
27
19
23
14
26
13
16
12
17
15
17
17
30
28
28
29
0
18
19
26
22
15
27
24
25
28
15
19
26
21
18
29
25
13
21
15
30
29
29
20
19
22
31
17
18
13
0
21
23
25
28
30
21
20
12
22
24
29

result:

wrong answer output line is not a valid date.(line = 0)