QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#438920#8726. Magic ShowOpuntia96220 1ms1872kbC++231.9kb2024-06-11 11:51:062024-06-11 11:51:08

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

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

input:

1
4005

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
17 74
17 18
17 13
17 53
17 55
17 28
17 61
17 57
17 47
17 25
17 6
17 44
17 24
17 70
17 16
17 26
17 64
17 12
17 71
17 80
17 15
17 4
17 76
17 82
17 41
17 36
17 38
31 6...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
17 74
17 18
17 13
17 53
17 55
17 28
17 61
17 57
17 47
17 25
17 6
17 44
17 24
17 70
17 16
17 26
17 64
17 12
17 71
17 80
17 15
17 4
17 76
17 82
17 41
17 36
17 38
31 6...

output:

2
4980 2859
3 19
5 19
6 17
7 31
8 31
9 19
12 17
14 31
15 17
16 17
17 18
17 24
17 25
17 28
17 38
17 44
17 47
17 55
17 57
17 61
17 64
17 80
17 82
19 20
19 21
19 27
19 30
19 34
19 40
19 43
19 50
19 56
19 62
19 75
23 31
31 33
31 35
31 48
31 51
31 54
31 60
31 65
31 68
31 69
31 77
31 78
84 102
85 114
86 1...

input:

2
4980 2859
3 19
5 19
6 17
7 31
8 31
9 19
12 17
14 31
15 17
16 17
17 18
17 24
17 25
17 28
17 38
17 44
17 47
17 55
17 57
17 61
17 64
17 80
17 82
19 20
19 21
19 27
19 30
19 34
19 40
19 43
19 50
19 56
19 62
19 75
23 31
31 33
31 35
31 48
31 51
31 54
31 60
31 65
31 68
31 69
31 77
31 78
84 102
85 114
86 1...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
4005

Test #2:

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

input:

1
459

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
17 74
17 18
17 13
17 53
17 55
17 28
17 61
17 57
17 47
17 25
17 6
17 44
17 24
17 70
17 16
17 26
17 64
17 12
17 71
17 80
17 15
17 4
17 76
17 82
17 41
17 36
17 38
31 6...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
17 74
17 18
17 13
17 53
17 55
17 28
17 61
17 57
17 47
17 25
17 6
17 44
17 24
17 70
17 16
17 26
17 64
17 12
17 71
17 80
17 15
17 4
17 76
17 82
17 41
17 36
17 38
31 6...

output:

2
4980 2859
3 19
5 19
6 17
7 31
8 31
9 19
12 17
14 31
15 17
16 17
17 18
17 24
17 25
17 28
17 38
17 44
17 47
17 55
17 57
17 61
17 64
17 80
17 82
19 20
19 21
19 27
19 30
19 34
19 40
19 43
19 50
19 56
19 62
19 75
23 31
31 33
31 35
31 48
31 51
31 54
31 60
31 65
31 68
31 69
31 77
31 78
84 103
87 121
88 1...

input:

2
4980 2859
3 19
5 19
6 17
7 31
8 31
9 19
12 17
14 31
15 17
16 17
17 18
17 24
17 25
17 28
17 38
17 44
17 47
17 55
17 57
17 61
17 64
17 80
17 82
19 20
19 21
19 27
19 30
19 34
19 40
19 43
19 50
19 56
19 62
19 75
23 31
31 33
31 35
31 48
31 51
31 54
31 60
31 65
31 68
31 69
31 77
31 78
84 103
87 121
88 1...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
459

Test #3:

score: 5
Accepted
time: 0ms = 0ms + 0ms
memory: 1872kb,1828kb

input:

1
2495

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
17 74
17 18
17 13
17 53
17 55
17 28
17 61
17 57
17 47
17 25
17 6
17 44
17 24
17 70
17 16
17 26
17 64
17 12
17 71
17 80
17 15
17 4
17 76
17 82
17 41
17 36
17 38
31 6...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
17 74
17 18
17 13
17 53
17 55
17 28
17 61
17 57
17 47
17 25
17 6
17 44
17 24
17 70
17 16
17 26
17 64
17 12
17 71
17 80
17 15
17 4
17 76
17 82
17 41
17 36
17 38
31 6...

output:

2
4980 2859
3 19
5 19
6 17
7 31
8 31
9 19
12 17
14 31
15 17
16 17
17 18
17 24
17 25
17 28
17 38
17 44
17 47
17 55
17 57
17 61
17 64
17 80
17 82
19 20
19 21
19 27
19 30
19 34
19 40
19 43
19 50
19 56
19 62
19 75
23 31
31 33
31 35
31 48
31 51
31 54
31 60
31 65
31 68
31 69
31 77
31 78
84 103
87 121
88 1...

input:

2
4980 2859
3 19
5 19
6 17
7 31
8 31
9 19
12 17
14 31
15 17
16 17
17 18
17 24
17 25
17 28
17 38
17 44
17 47
17 55
17 57
17 61
17 64
17 80
17 82
19 20
19 21
19 27
19 30
19 34
19 40
19 43
19 50
19 56
19 62
19 75
23 31
31 33
31 35
31 48
31 51
31 54
31 60
31 65
31 68
31 69
31 77
31 78
84 103
87 121
88 1...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
2495

Test #4:

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

input:

3
1560

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

output:

4
4980 2490
1 50
2 50
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 37
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 64
6 65
6 66
6 75
6 83
7 52
9 52
11 50
12 52
14 50
16 50
17 50
18 50
20 52
22 52
23 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
35 50
36 52
38 52
39 52...

input:

4
4980 2490
1 50
2 50
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 37
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 64
6 65
6 66
6 75
6 83
7 52
9 52
11 50
12 52
14 50
16 50
17 50
18 50
20 52
22 52
23 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
35 50
36 52
38 52
39 52...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
1048

Subtask #2:

score: 0
Wrong Answer

Test #13:

score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1864kb,1840kb

input:

1
17476204

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

output:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 88
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

input:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 88
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
17476204

Test #14:

score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1868kb,1840kb

input:

1
11926600

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

output:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 88
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

input:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 88
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
11926600

Test #15:

score: 30
Accepted
time: 0ms = 0ms + 0ms
memory: 1864kb,1836kb

input:

1
16602378

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

output:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 89
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

input:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 89
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
16602378

Test #16:

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

input:

3
13129243

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
4980
49 7
49 34
49 61
49 39
49 52
49 72
49 24
49 54
49 29
49 79
49 55
49 41
49 43
49 74
49 15
49 58
49 1
49 67
49 25
49 83
49 11
49 75
49 60
49 17
49 3
49 78
49 14
51 6
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
4980
49 7
49 34
49 61
49 39
49 52
49 72
49 24
49 54
49 29
49 79
49 55
49 41
49 43
49 74
49 15
49 58
49 1
49 67
49 25
49 83
49 11
49 75
49 60
49 17
49 3
49 78
49 14
51 6
...

output:

4
4980 2490
1 49
2 5
3 49
4 51
5 10
5 12
5 19
5 21
5 22
5 23
5 26
5 27
5 28
5 31
5 32
5 36
5 37
5 38
5 42
5 44
5 51
5 56
5 59
5 64
5 66
5 71
5 73
5 76
5 80
5 82
6 51
7 49
8 51
9 51
11 49
13 51
14 49
15 49
16 51
17 49
18 51
20 51
24 49
25 49
29 49
30 51
33 51
34 49
35 51
39 49
40 51
41 49
43 49
45 51...

input:

4
4980 2490
1 49
2 5
3 49
4 51
5 10
5 12
5 19
5 21
5 22
5 23
5 26
5 27
5 28
5 31
5 32
5 36
5 37
5 38
5 42
5 44
5 51
5 56
5 59
5 64
5 66
5 71
5 73
5 76
5 80
5 82
6 51
7 49
8 51
9 51
11 49
13 51
14 49
15 49
16 51
17 49
18 51
20 51
24 49
25 49
29 49
30 51
33 51
34 49
35 51
39 49
40 51
41 49
43 49
45 51...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
13128729

Subtask #3:

score: 0
Wrong Answer

Test #25:

score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1864kb,1836kb

input:

1
355365355024496523

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
49 7
49 34
49 61
49 39
49 52
49 72
49 24
49 54
49 29
49 79
49 55
49 41
49 43
49 74
49 15
49 58
49 1
49 67
49 25
49 83
49 11
49 75
49 60
49 17
49 3
49 78
49 14
51 6
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
49 7
49 34
49 61
49 39
49 52
49 72
49 24
49 54
49 29
49 79
49 55
49 41
49 43
49 74
49 15
49 58
49 1
49 67
49 25
49 83
49 11
49 75
49 60
49 17
49 3
49 78
49 14
51 6
...

output:

2
4980 3540
2 5
3 49
4 51
5 10
5 12
5 19
5 21
5 22
5 23
5 26
5 27
5 28
5 31
5 32
5 36
5 37
5 38
5 42
5 44
5 51
5 56
5 59
5 64
5 66
5 71
5 73
5 80
5 161
7 49
8 51
9 51
11 49
14 49
16 51
18 51
20 51
25 49
30 51
34 49
35 51
39 49
40 51
43 49
46 51
49 51
49 52
49 54
49 58
49 60
49 67
49 74
49 75
49 78
4...

input:

2
4980 3540
2 5
3 49
4 51
5 10
5 12
5 19
5 21
5 22
5 23
5 26
5 27
5 28
5 31
5 32
5 36
5 37
5 38
5 42
5 44
5 51
5 56
5 59
5 64
5 66
5 71
5 73
5 80
5 161
7 49
8 51
9 51
11 49
14 49
16 51
18 51
20 51
25 49
30 51
34 49
35 51
39 49
40 51
43 49
46 51
49 51
49 52
49 54
49 58
49 60
49 67
49 74
49 75
49 78
4...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
355365355024496523

Test #26:

score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1872kb,1844kb

input:

1
727827999106414164

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

output:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 88
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

input:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 88
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
727827999106414164

Test #27:

score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1868kb,1840kb

input:

1
656410143989222955

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
49 7
49 34
49 61
49 39
49 52
49 72
49 24
49 54
49 29
49 79
49 55
49 41
49 43
49 74
49 15
49 58
49 1
49 67
49 25
49 83
49 11
49 75
49 60
49 17
49 3
49 78
49 14
51 6
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
49 7
49 34
49 61
49 39
49 52
49 72
49 24
49 54
49 29
49 79
49 55
49 41
49 43
49 74
49 15
49 58
49 1
49 67
49 25
49 83
49 11
49 75
49 60
49 17
49 3
49 78
49 14
51 6
...

output:

2
4980 3540
2 5
3 49
4 51
5 10
5 12
5 19
5 21
5 22
5 23
5 26
5 27
5 28
5 31
5 32
5 36
5 37
5 38
5 42
5 44
5 51
5 56
5 59
5 64
5 66
5 71
5 73
5 80
5 161
7 49
8 51
9 51
11 49
14 49
16 51
18 51
20 51
25 49
30 51
34 49
35 51
39 49
40 51
43 49
46 51
49 51
49 52
49 54
49 58
49 60
49 67
49 74
49 75
49 78
4...

input:

2
4980 3540
2 5
3 49
4 51
5 10
5 12
5 19
5 21
5 22
5 23
5 26
5 27
5 28
5 31
5 32
5 36
5 37
5 38
5 42
5 44
5 51
5 56
5 59
5 64
5 66
5 71
5 73
5 80
5 161
7 49
8 51
9 51
11 49
14 49
16 51
18 51
20 51
25 49
30 51
34 49
35 51
39 49
40 51
43 49
46 51
49 51
49 52
49 54
49 58
49 60
49 67
49 74
49 75
49 78
4...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
656410143989222955

Test #28:

score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1864kb,1836kb

input:

1
410366615149657534

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

output:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 89
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

input:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 89
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
410366615149657534

Test #29:

score: 65
Accepted
time: 0ms = 0ms + 0ms
memory: 1868kb,1840kb

input:

1
298090682780948428

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
1
4980
50 44
50 78
50 2
50 32
50 74
50 17
50 45
50 33
50 35
50 28
50 55
50 16
50 72
50 62
50 1
50 40
50 11
50 77
50 81
50 73
50 67
50 18
50 76
50 42
50 47
50 30
50 14
52 1...

output:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 88
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

input:

2
4980 3540
3 52
4 52
5 52
6 8
6 10
6 13
6 15
6 19
6 21
6 26
6 27
6 29
6 31
6 41
6 48
6 51
6 52
6 53
6 54
6 56
6 58
6 59
6 60
6 63
6 65
6 66
6 75
6 83
6 88
7 52
9 52
14 50
18 50
20 52
22 52
24 52
25 52
28 50
30 50
32 50
33 50
34 52
36 52
38 52
39 52
40 50
43 52
44 50
46 52
47 50
49 52
50 52
50 62
50...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
298090682780948428

Test #30:

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

input:

3
969441916331132577

output:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
4980
49 7
49 34
49 61
49 39
49 52
49 72
49 24
49 54
49 29
49 79
49 55
49 41
49 43
49 74
49 15
49 58
49 1
49 67
49 25
49 83
49 11
49 75
49 60
49 17
49 3
49 78
49 14
51 6
...

input:

a890c6696058af3ad84e267191c856938f206a8ef7c63581510cdfa15e45f9c07d82b6a58fe3c8183e2b8f4b976dd90fbca50f420ce3dcf29a3d6a73adf47022
3
4980
49 7
49 34
49 61
49 39
49 52
49 72
49 24
49 54
49 29
49 79
49 55
49 41
49 43
49 74
49 15
49 58
49 1
49 67
49 25
49 83
49 11
49 75
49 60
49 17
49 3
49 78
49 14
51 6
...

output:

4
4980 2490
1 49
2 5
3 49
4 51
5 10
5 12
5 19
5 21
5 22
5 23
5 26
5 27
5 28
5 31
5 32
5 36
5 37
5 38
5 42
5 44
5 51
5 56
5 59
5 64
5 66
5 71
5 73
5 76
5 80
5 82
6 51
7 49
8 51
9 51
11 49
13 51
14 49
15 49
16 51
17 49
18 51
20 51
24 49
25 49
29 49
30 51
33 51
34 49
35 51
39 49
40 51
41 49
43 49
45 51...

input:

4
4980 2490
1 49
2 5
3 49
4 51
5 10
5 12
5 19
5 21
5 22
5 23
5 26
5 27
5 28
5 31
5 32
5 36
5 37
5 38
5 42
5 44
5 51
5 56
5 59
5 64
5 66
5 71
5 73
5 76
5 80
5 82
6 51
7 49
8 51
9 51
11 49
13 51
14 49
15 49
16 51
17 49
18 51
20 51
24 49
25 49
29 49
30 51
33 51
34 49
35 51
39 49
40 51
41 49
43 49
45 51...

output:

08e2277017156c65e2df558ef1d27eae814767ea6a771d5be687d4040371b97399dd6bd28d5207cce21e4e205ea711c730f7ccf85a21af8c41bab7c037b89e9e
969441916330968737