QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#488189#8726. Magic ShowAdorable0 0ms0kbC++23867b2024-07-23 17:49:142024-07-23 17:49:17

詳細信息

Subtask #1:

score: 0
Time Limit Exceeded

Test #1:

score: 0
Time Limit Exceeded

input:

1
4005

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
5000
2 1
3 2
4 1
5 2
6 1
7 4
8 2
9 6
10 1
11 6
12 2
13 10
14 2
15 2
16 1
17 6
18 11
19 10
20 16
21 6
22 16
23 2
24 4
25 22
26 6
27 2
28 10
29 2
30 4
31 16
32 7
33 6
34 1...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
5000
2 1
3 2
4 1
5 2
6 1
7 4
8 2
9 6
10 1
11 6
12 2
13 10
14 2
15 2
16 1
17 6
18 11
19 10
20 16
21 6
22 16
23 2
24 4
25 22
26 6
27 2
28 10
29 2
30 4
31 16
32 7
33 6
34 1...

output:

2
5000 2918
1 4
1 6
1 16
1 90
1 268
1 446
1 4006
2 3
2 5
2 12
2 14
2 15
2 53
2 78
2 92
2 183
2 287
2 309
2 573
2 1002
2 4005
4 70
4 88
4 139
4 175
4 668
4 2002
4 4003
5 4002
6 9
6 11
6 26
6 41
6 51
6 101
6 126
6 201
6 251
6 501
6 801
6 1001
6 2001
7 32
7 94
7 1334
8 2000
8 3999
9 572
10 19
10 38
10 ...

input:

2
5000 2918
1 4
1 6
1 16
1 90
1 268
1 446
1 4006
2 3
2 5
2 12
2 14
2 15
2 53
2 78
2 92
2 183
2 287
2 309
2 573
2 1002
2 4005
4 70
4 88
4 139
4 175
4 668
4 2002
4 4003
5 4002
6 9
6 11
6 26
6 41
6 51
6 101
6 126
6 201
6 251
6 501
6 801
6 1001
6 2001
7 32
7 94
7 1334
8 2000
8 3999
9 572
10 19
10 38
10 ...

output:


Subtask #2:

score: 0
Time Limit Exceeded

Test #13:

score: 0
Time Limit Exceeded

input:

1
17476204

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
5000
2 1
3 1
4 2
5 1
6 5
7 5
8 5
9 5
10 5
11 5
12 10
13 5
14 6
15 5
16 5
17 13
18 1
19 5
20 5
21 5
22 5
23 21
24 23
25 5
26 5
27 19
28 23
29 5
30 22
31 5
32 17
33 13
34 ...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
5000
2 1
3 1
4 2
5 1
6 5
7 5
8 5
9 5
10 5
11 5
12 10
13 5
14 6
15 5
16 5
17 13
18 1
19 5
20 5
21 5
22 5
23 21
24 23
25 5
26 5
27 19
28 23
29 5
30 22
31 5
32 17
33 13
34 ...

output:

2
5000 4914
1 2
1 3
1 5
1 18
1 35
1 69
2 4
2 108
2 322
4 1188
5 6
5 7
5 8
5 9
5 10
5 11
5 13
5 15
5 16
5 19
5 20
5 21
5 22
5 25
5 26
5 29
5 31
5 36
5 37
5 39
5 43
5 46
5 51
5 57
5 58
5 61
5 64
5 71
5 73
5 74
5 76
5 77
5 85
5 91
5 96
5 101
5 106
5 121
5 127
5 134
5 147
5 151
5 153
5 169
5 172
5 176
5...

input:

2
5000 4914
1 2
1 3
1 5
1 18
1 35
1 69
2 4
2 108
2 322
4 1188
5 6
5 7
5 8
5 9
5 10
5 11
5 13
5 15
5 16
5 19
5 20
5 21
5 22
5 25
5 26
5 29
5 31
5 36
5 37
5 39
5 43
5 46
5 51
5 57
5 58
5 61
5 64
5 71
5 73
5 74
5 76
5 77
5 85
5 91
5 96
5 101
5 106
5 121
5 127
5 134
5 147
5 151
5 153
5 169
5 172
5 176
5...

output:


Subtask #3:

score: 0
Time Limit Exceeded

Test #25:

score: 0
Time Limit Exceeded

input:

1
355365355024496523

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
5000
2 1
3 2
4 3
5 4
6 5
7 6
8 1
9 4
10 9
11 10
12 11
13 12
14 10
15 8
16 15
17 12
18 6
19 18
20 12
21 20
22 15
23 22
24 23
25 12
26 25
27 10
28 9
29 8
30 3
31 30
32 13
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
5000
2 1
3 2
4 3
5 4
6 5
7 6
8 1
9 4
10 9
11 10
12 11
13 12
14 10
15 8
16 15
17 12
18 6
19 18
20 12
21 20
22 15
23 22
24 23
25 12
26 25
27 10
28 9
29 8
30 3
31 30
32 13
...

output:

2
5000 4071
1 8
1 200
1 1394
2 3
2 644
2 1287
3 4
3 30
3 88
4 5
4 9
4 2558
5 42
5 206
6 7
6 52
6 72
6 143
6 214
6 427
6 1208
6 2415
8 15
8 29
9 10
9 82
10 11
10 14
10 27
10 66
10 131
10 992
10 1983
10 4956
11 12
12 13
12 17
12 20
12 25
12 49
12 58
12 65
12 115
12 129
12 193
12 229
12 305
12 385
12 4...

input:

2
5000 4071
1 8
1 200
1 1394
2 3
2 644
2 1287
3 4
3 30
3 88
4 5
4 9
4 2558
5 42
5 206
6 7
6 52
6 72
6 143
6 214
6 427
6 1208
6 2415
8 15
8 29
9 10
9 82
10 11
10 14
10 27
10 66
10 131
10 992
10 1983
10 4956
11 12
12 13
12 17
12 20
12 25
12 49
12 58
12 65
12 115
12 129
12 193
12 229
12 305
12 385
12 4...

output: