QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#555677#8726. Magic Showeill0 3ms2308kbC++141.4kb2024-09-10 08:02:572024-09-10 08:02:59

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 5
Accepted
time: 1ms = 0ms + 1ms
memory: 1896kb,2240kb

input:

1
4005

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
3135 2179
3268 4982
4324 4982
3414 4982
182 4982
2857 4982
4565 4982
3560 1813
3404 4982
288 4982
3894 4982
1966 4982
2776 4982
1154 1800
4545 4982
949 4982
652 498...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
3135 2179
3268 4982
4324 4982
3414 4982
182 4982
2857 4982
4565 4982
3560 1813
3404 4982
288 4982
3894 4982
1966 4982
2776 4982
1154 1800
4545 4982
949 4982
652 498...

output:

2
4982 3595
1 4725
2 4982
3 4982
5 1340
5 4982
6 4982
7 4982
8 4982
9 4982
11 3255
12 4982
15 4982
17 4982
19 4982
20 4982
21 4982
22 4982
26 4982
28 4982
31 4982
33 4982
34 4982
35 1796
37 4982
39 4982
40 4982
42 4982
43 4982
45 4982
46 4982
47 4982
48 4982
49 4982
50 4982
51 4982
53 4982
55 4982
5...

input:

2
4982 3595
1 4725
2 4982
3 4982
5 1340
5 4982
6 4982
7 4982
8 4982
9 4982
11 3255
12 4982
15 4982
17 4982
19 4982
20 4982
21 4982
22 4982
26 4982
28 4982
31 4982
33 4982
34 4982
35 1796
37 4982
39 4982
40 4982
42 4982
43 4982
45 4982
46 4982
47 4982
48 4982
49 4982
50 4982
51 4982
53 4982
55 4982
5...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
4005

Test #2:

score: 5
Accepted
time: 2ms = 1ms + 1ms
memory: 1904kb,2248kb

input:

1
459

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
2827 1605
3320 4982
4352 4982
3467 4982
348 4982
2926 4982
4588 4982
1300 1521
3457 4982
452 4982
3931 4982
2061 4982
2841 4982
2825 4639
4569 4982
1089 4982
810 49...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
2827 1605
3320 4982
4352 4982
3467 4982
348 4982
2926 4982
4588 4982
1300 1521
3457 4982
452 4982
3931 4982
2061 4982
2841 4982
2825 4639
4569 4982
1089 4982
810 49...

output:

2
4982 3595
1 4982
2 4982
3 4982
6 4982
9 4982
10 1037
10 2457
11 3255
12 4982
15 4982
18 4982
19 4982
21 4982
24 3951
26 4982
27 4982
28 4982
29 4982
31 4982
32 4982
34 4982
36 4982
37 4982
38 3288
38 4982
39 4982
40 4982
41 397
42 4982
43 4982
44 3691
44 4982
45 4982
46 4982
47 4982
48 4982
49 498...

input:

2
4982 3595
1 4982
2 4982
3 4982
6 4982
9 4982
10 1037
10 2457
11 3255
12 4982
15 4982
18 4982
19 4982
21 4982
24 3951
26 4982
27 4982
28 4982
29 4982
31 4982
32 4982
34 4982
36 4982
37 4982
38 3288
38 4982
39 4982
40 4982
41 397
42 4982
43 4982
44 3691
44 4982
45 4982
46 4982
47 4982
48 4982
49 498...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
459

Test #3:

score: 5
Accepted
time: 2ms = 1ms + 1ms
memory: 1904kb,2236kb

input:

1
2495

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
1578 4815
3227 4982
4312 4982
3366 4982
78 4982
2804 4982
4562 4982
4233 1916
3359 4982
195 4982
3873 4982
1894 4982
2717 4982
2016 2408
4541 4982
868 4982
566 4982...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
1578 4815
3227 4982
4312 4982
3366 4982
78 4982
2804 4982
4562 4982
4233 1916
3359 4982
195 4982
3873 4982
1894 4982
2717 4982
2016 2408
4541 4982
868 4982
566 4982...

output:

2
4982 3595
1 4982
2 4982
3 4982
4 4982
5 4982
6 4982
7 4982
8 4982
9 4982
11 3255
12 4982
14 4982
16 4982
17 4982
18 4982
20 2992
22 4982
23 4982
24 1219
24 3951
27 4982
29 4982
30 4982
31 4982
33 4982
34 2291
34 4982
35 1796
36 2461
37 2179
38 4982
39 4982
40 4982
41 397
41 2777
42 4982
43 4982
44...

input:

2
4982 3595
1 4982
2 4982
3 4982
4 4982
5 4982
6 4982
7 4982
8 4982
9 4982
11 3255
12 4982
14 4982
16 4982
17 4982
18 4982
20 2992
22 4982
23 4982
24 1219
24 3951
27 4982
29 4982
30 4982
31 4982
33 4982
34 2291
34 4982
35 1796
36 2461
37 2179
38 4982
39 4982
40 4982
41 397
41 2777
42 4982
43 4982
44...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
2495

Test #4:

score: 0
Wrong Answer
time: 1ms = 1ms + 0ms
memory: 1900kb,2308kb

input:

3
1560

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
4982
4267 2038
3384 4982
4379 4982
3524 4982
522 4982
3005 4982
4603 4982
133 4982
3516 4982
618 4982
3979 4982
2179 4982
2923 4982
135 4982
4586 4982
1241 4982
958 4982...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
4982
4267 2038
3384 4982
4379 4982
3524 4982
522 4982
3005 4982
4603 4982
133 4982
3516 4982
618 4982
3979 4982
2179 4982
2923 4982
135 4982
4586 4982
1241 4982
958 4982...

output:

4
4982 4649
2 4982
3 4982
4 4982
5 4982
6 4982
7 4982
8 4982
9 4982
11 4982
12 4982
13 4982
14 4982
15 4982
16 4982
17 4982
18 4982
19 4982
21 4982
22 4982
23 4982
25 4982
26 4982
27 4982
28 4982
29 4982
30 4982
31 4982
32 4982
33 4982
34 4982
35 4982
36 4982
39 4982
40 4982
41 4982
42 4982
43 4982
...

input:

4
4982 4649
2 4982
3 4982
4 4982
5 4982
6 4982
7 4982
8 4982
9 4982
11 4982
12 4982
13 4982
14 4982
15 4982
16 4982
17 4982
18 4982
19 4982
21 4982
22 4982
23 4982
25 4982
26 4982
27 4982
28 4982
29 4982
30 4982
31 4982
32 4982
33 4982
34 4982
35 4982
36 4982
39 4982
40 4982
41 4982
42 4982
43 4982
...

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Incorrect answer.

Subtask #2:

score: 0
Wrong Answer

Test #13:

score: 30
Accepted
time: 2ms = 1ms + 1ms
memory: 1900kb,2248kb

input:

1
17476204

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
3135 2179
3145 4982
4287 4982
3306 4982
2931 4255
2688 4982
4553 4982
4359 3253
3297 4982
1000 3009
3826 4982
1767 4982
2599 4982
979 4501
4528 4982
694 4982
386 49...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
3135 2179
3145 4982
4287 4982
3306 4982
2931 4255
2688 4982
4553 4982
4359 3253
3297 4982
1000 3009
3826 4982
1767 4982
2599 4982
979 4501
4528 4982
694 4982
386 49...

output:

2
4982 3963
2 4982
3 4982
4 4982
6 3421
6 4982
7 4982
8 4982
9 4982
10 1037
13 4831
13 4982
14 4982
15 4982
16 4982
17 4982
18 4982
19 4982
20 2992
21 3384
22 4982
23 4982
24 1219
24 3951
25 1236
25 4982
27 4982
29 4408
29 4982
31 4982
32 4982
33 4982
34 4982
35 1796
36 4982
37 4982
38 3288
39 807
4...

input:

2
4982 3963
2 4982
3 4982
4 4982
6 3421
6 4982
7 4982
8 4982
9 4982
10 1037
13 4831
13 4982
14 4982
15 4982
16 4982
17 4982
18 4982
19 4982
20 2992
21 3384
22 4982
23 4982
24 1219
24 3951
25 1236
25 4982
27 4982
29 4408
29 4982
31 4982
32 4982
33 4982
34 4982
35 1796
36 4982
37 4982
38 3288
39 807
4...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
17476204

Test #14:

score: 30
Accepted
time: 3ms = 1ms + 2ms
memory: 1896kb,2240kb

input:

1
11926600

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
4005 1630
3070 4982
4265 4982
3248 4982
1867 2863
2603 4982
4530 4982
2031 1307
3237 4982
699 4403
3770 4982
1641 4982
2517 4982
1382 241
4509 4982
514 4982
198 498...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
4005 1630
3070 4982
4265 4982
3248 4982
1867 2863
2603 4982
4530 4982
2031 1307
3237 4982
699 4403
3770 4982
1641 4982
2517 4982
1382 241
4509 4982
514 4982
198 498...

output:

2
4982 3963
1 4725
2 4982
3 4982
5 1340
5 4913
5 4982
6 3421
6 4982
7 4982
8 4982
9 4982
10 1037
11 4982
13 4982
14 4982
15 4982
18 4982
19 4619
19 4982
20 2992
22 4982
23 2086
24 3951
25 3933
25 4982
27 773
28 4982
29 4982
31 4982
32 4982
33 4982
34 4982
35 1796
35 2028
36 4982
38 955
38 2183
38 32...

input:

2
4982 3963
1 4725
2 4982
3 4982
5 1340
5 4913
5 4982
6 3421
6 4982
7 4982
8 4982
9 4982
10 1037
11 4982
13 4982
14 4982
15 4982
18 4982
19 4619
19 4982
20 2992
22 4982
23 2086
24 3951
25 3933
25 4982
27 773
28 4982
29 4982
31 4982
32 4982
33 4982
34 4982
35 1796
35 2028
36 4982
38 955
38 2183
38 32...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
11926600

Test #15:

score: 30
Accepted
time: 2ms = 1ms + 1ms
memory: 1904kb,2240kb

input:

1
16602378

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
1340 2632
3095 4982
4273 4982
3260 4982
1544 1270
2624 4982
4532 4982
2068 3919
3252 4982
269 2125
3775 4982
1668 4982
2532 4982
3999 2837
4512 4982
533 4982
209 49...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
1340 2632
3095 4982
4273 4982
3260 4982
1544 1270
2624 4982
4532 4982
2068 3919
3252 4982
269 2125
3775 4982
1668 4982
2532 4982
3999 2837
4512 4982
533 4982
209 49...

output:

2
4982 3963
1 4725
2 4982
3 4982
4 4863
5 1340
5 4913
5 4982
6 4982
7 4982
8 4982
9 4982
10 1037
10 2457
11 3255
12 4982
14 4982
15 4982
16 4982
19 4619
19 4982
20 2992
21 1782
22 4982
23 2086
24 3951
25 3933
27 773
28 4982
29 4982
31 4982
32 4982
34 4982
35 2028
36 4982
37 2611
37 4982
38 2183
39 4...

input:

2
4982 3963
1 4725
2 4982
3 4982
4 4863
5 1340
5 4913
5 4982
6 4982
7 4982
8 4982
9 4982
10 1037
10 2457
11 3255
12 4982
14 4982
15 4982
16 4982
19 4619
19 4982
20 2992
21 1782
22 4982
23 2086
24 3951
25 3933
27 773
28 4982
29 4982
31 4982
32 4982
34 4982
35 2028
36 4982
37 2611
37 4982
38 2183
39 4...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
16602378

Test #16:

score: 0
Wrong Answer
time: 2ms = 1ms + 1ms
memory: 1904kb,2280kb

input:

3
13129243

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
4982
2827 1605
3178 4982
4314 4982
3325 4982
3416 2536
2732 4982
4563 4982
4079 871
3316 4982
1676 3035
3847 4982
1785 4982
2638 4982
2273 831
4545 4982
713 4982
396 498...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
4982
2827 1605
3178 4982
4314 4982
3325 4982
3416 2536
2732 4982
4563 4982
4079 871
3316 4982
1676 3035
3847 4982
1785 4982
2638 4982
2273 831
4545 4982
713 4982
396 498...

output:

4
4982 4066
2 4982
3 4982
4 4982
5 4982
6 4982
7 4982
8 4982
9 4982
11 4982
12 4982
13 4982
14 4982
15 4982
16 4982
17 4982
18 4982
19 4982
21 4982
22 4982
25 4982
26 4982
27 4982
28 4982
29 4982
30 4982
31 4982
32 4982
33 4982
34 4982
35 4982
36 4982
39 4982
40 4982
42 4982
43 4982
44 4982
45 4982
...

input:

4
4982 4066
2 4982
3 4982
4 4982
5 4982
6 4982
7 4982
8 4982
9 4982
11 4982
12 4982
13 4982
14 4982
15 4982
16 4982
17 4982
18 4982
19 4982
21 4982
22 4982
25 4982
26 4982
27 4982
28 4982
29 4982
30 4982
31 4982
32 4982
33 4982
34 4982
35 4982
36 4982
39 4982
40 4982
42 4982
43 4982
44 4982
45 4982
...

output:

9ff923928e5675d6f7ae686fcfb20beac84bc7b1a47cf13bde24b59497bcae3b4900097049e1c568aa409defdbadf4cfc599c0e496e22068170cce547295ffa4
Incorrect answer.

Subtask #3:

score: 0
Wrong Answer

Test #25:

score: 0
Wrong Answer
time: 2ms = 1ms + 1ms
memory: 1900kb,2208kb

input:

1
355365355024496523

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
2827 1605
1744 4982
3771 4982
2033 4982
1985 3317
917 4982
4227 4982
3560 1813
2024 4982
3368 3545
2964 4982
1615 4556
734 4982
1154 1800
4196 4982
1304 297
1013 25...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4982
2827 1605
1744 4982
3771 4982
2033 4982
1985 3317
917 4982
4227 4982
3560 1813
2024 4982
3368 3545
2964 4982
1615 4556
734 4982
1154 1800
4196 4982
1304 297
1013 25...

output:

2
4982 3963
1 4725
2 4982
3 2327
4 1600
5 439
5 4913
6 3421
7 4982
8 1881
9 4982
10 2457
10 4765
11 167
11 3255
13 2612
13 3513
13 4831
14 3218
16 26
16 4982
17 1989
17 4982
18 2506
18 4982
20 2992
21 1782
22 3681
24 3951
25 1236
25 3933
27 773
28 1267
28 3803
29 4408
30 4077
31 4982
32 4982
33 4912...

input:

2
4982 3963
1 4725
2 4982
3 2327
4 1600
5 439
5 4913
6 3421
7 4982
8 1881
9 4982
10 2457
10 4765
11 167
11 3255
13 2612
13 3513
13 4831
14 3218
16 26
16 4982
17 1989
17 4982
18 2506
18 4982
20 2992
21 1782
22 3681
24 3951
25 1236
25 3933
27 773
28 1267
28 3803
29 4408
30 4077
31 4982
32 4982
33 4912...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
1476376555