QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#488159#8726. Magic ShowAdorable0 2ms3788kbC++231.3kb2024-07-23 17:13:392024-07-23 17:13:41

详细

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 5
Accepted
time: 2ms = 1ms + 1ms
memory: 1868kb,3788kb

input:

1
4005

output:

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

input:

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

output:

2
5000 3939
1 2
1 4
1 5
1 6
1 14
1 16
1 23
1 24
1 26
1 33
1 39
1 40
1 41
1 42
1 43
1 45
1 46
1 50
1 51
1 52
1 53
1 56
1 59
1 61
1 64
1 67
1 72
1 74
1 78
1 82
1 84
1 88
1 89
1 91
1 92
1 94
1 97
1 98
1 100
1 122
1 126
1 127
1 128
1 130
1 133
1 137
1 138
1 140
1 143
1 144
1 146
1 147
1 154
1 159
1 160
...

input:

2
5000 3939
1 2
1 4
1 5
1 6
1 14
1 16
1 23
1 24
1 26
1 33
1 39
1 40
1 41
1 42
1 43
1 45
1 46
1 50
1 51
1 52
1 53
1 56
1 59
1 61
1 64
1 67
1 72
1 74
1 78
1 82
1 84
1 88
1 89
1 91
1 92
1 94
1 97
1 98
1 100
1 122
1 126
1 127
1 128
1 130
1 133
1 137
1 138
1 140
1 143
1 144
1 146
1 147
1 154
1 159
1 160
...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
4005

Test #2:

score: 5
Accepted
time: 1ms = 0ms + 1ms
memory: 1864kb,3780kb

input:

1
459

output:

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

input:

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

output:

2
5000 3939
1 2
1 4
1 5
1 6
1 14
1 16
1 23
1 24
1 26
1 33
1 39
1 40
1 41
1 42
1 43
1 45
1 46
1 50
1 51
1 52
1 53
1 56
1 59
1 61
1 64
1 67
1 72
1 74
1 78
1 82
1 84
1 88
1 89
1 91
1 92
1 94
1 97
1 98
1 100
1 122
1 126
1 127
1 128
1 130
1 133
1 137
1 138
1 140
1 143
1 144
1 146
1 147
1 154
1 159
1 160
...

input:

2
5000 3939
1 2
1 4
1 5
1 6
1 14
1 16
1 23
1 24
1 26
1 33
1 39
1 40
1 41
1 42
1 43
1 45
1 46
1 50
1 51
1 52
1 53
1 56
1 59
1 61
1 64
1 67
1 72
1 74
1 78
1 82
1 84
1 88
1 89
1 91
1 92
1 94
1 97
1 98
1 100
1 122
1 126
1 127
1 128
1 130
1 133
1 137
1 138
1 140
1 143
1 144
1 146
1 147
1 154
1 159
1 160
...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
459

Test #3:

score: 5
Accepted
time: 1ms = 0ms + 1ms
memory: 1868kb,3780kb

input:

1
2495

output:

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

input:

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

output:

2
5000 3939
1 2
1 4
1 5
1 6
1 14
1 16
1 23
1 24
1 26
1 33
1 39
1 40
1 41
1 42
1 43
1 45
1 46
1 50
1 51
1 52
1 53
1 56
1 59
1 61
1 64
1 67
1 72
1 74
1 78
1 82
1 84
1 88
1 89
1 91
1 92
1 94
1 97
1 98
1 100
1 122
1 126
1 127
1 128
1 130
1 133
1 137
1 138
1 140
1 143
1 144
1 146
1 147
1 154
1 159
1 160
...

input:

2
5000 3939
1 2
1 4
1 5
1 6
1 14
1 16
1 23
1 24
1 26
1 33
1 39
1 40
1 41
1 42
1 43
1 45
1 46
1 50
1 51
1 52
1 53
1 56
1 59
1 61
1 64
1 67
1 72
1 74
1 78
1 82
1 84
1 88
1 89
1 91
1 92
1 94
1 97
1 98
1 100
1 122
1 126
1 127
1 128
1 130
1 133
1 137
1 138
1 140
1 143
1 144
1 146
1 147
1 154
1 159
1 160
...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
2495

Test #4:

score: 0
Wrong Answer
time: 1ms = 0ms + 1ms
memory: 1872kb,3756kb

input:

3
1560

output:

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

input:

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

output:

4
5000 2509
1 1560
3 1560
7 1560
8 1560
9 1560
11 1560
12 1560
15 1560
17 1560
18 1560
20 1560
22 1560
25 1560
27 1560
28 1560
29 1560
30 1560
31 1560
32 1560
34 1560
35 1560
36 1560
38 1560
44 1560
49 1560
54 1560
55 1560
62 1560
63 1560
65 1560
66 1560
68 1560
69 1560
70 1560
73 1560
75 1560
77 15...

input:

4
5000 2509
1 1560
3 1560
7 1560
8 1560
9 1560
11 1560
12 1560
15 1560
17 1560
18 1560
20 1560
22 1560
25 1560
27 1560
28 1560
29 1560
30 1560
31 1560
32 1560
34 1560
35 1560
36 1560
38 1560
44 1560
49 1560
54 1560
55 1560
62 1560
63 1560
65 1560
66 1560
68 1560
69 1560
70 1560
73 1560
75 1560
77 15...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
2433600

Subtask #2:

score: 0
Wrong Answer

Test #13:

score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1864kb,1776kb

input:

1
17476204

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Number of edges returned by Alice() is not n-1.

input:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Number of edges returned by Alice() is not n-1.

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Number of edges returned by Alice() is not n-1.

input:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Number of edges returned by Alice() is not n-1.

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Number of edges returned by Alice() is not n-1.

Subtask #3:

score: 0
Wrong Answer

Test #25:

score: 0
Wrong Answer
time: 0ms = 0ms + 0ms
memory: 1868kb,1772kb

input:

1
355365355024496523

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Number of edges returned by Alice() is not n-1.

input:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Number of edges returned by Alice() is not n-1.

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Number of edges returned by Alice() is not n-1.

input:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Number of edges returned by Alice() is not n-1.

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Number of edges returned by Alice() is not n-1.