QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#335286#2400. Mult!GuanYunchangAC ✓1ms3872kbC++20363b2024-02-23 07:04:392024-02-23 07:04:41

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 3872kb

input:

25
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38
40
42
44
46
48
50

output:

4
12
28

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 1ms
memory: 3748kb

input:

1000
36
90
77
28
69
75
4
75
47
61
96
17
75
37
55
59
30
82
2
27
35
14
90
84
1
16
46
78
65
76
33
7
85
42
39
64
56
55
27
95
82
2
100
94
85
60
89
40
22
84
92
25
100
22
36
90
56
75
5
18
99
71
55
40
38
41
26
87
41
42
68
72
87
1
56
63
16
55
48
52
50
32
98
13
18
43
29
43
18
63
49
90
33
74
26
96
74
82
60
25
...

output:

36
90
99
30
17
67
52
26
74
52
83
74
43
99
52
77
29
69
28

result:

ok 19 lines

Test #3:

score: 0
Accepted
time: 0ms
memory: 3812kb

input:

10
51
64
51
25
76
97
66
85
44
87

output:

51

result:

ok single line: '51'

Test #4:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

25
21
9
65
65
43
96
62
20
8
78
30
64
79
84
46
6
76
33
28
15
80
14
61
1
65

output:

84

result:

ok single line: '84'

Test #5:

score: 0
Accepted
time: 1ms
memory: 3808kb

input:

100
24
29
70
83
11
41
75
62
68
72
68
63
85
38
20
88
65
23
67
2
10
52
46
86
50
37
36
58
26
27
18
93
11
99
89
78
95
74
8
70
67
54
74
53
88
58
18
57
36
94
30
78
39
22
38
76
60
79
90
52
11
92
82
96
77
35
50
80
58
61
45
15
81
59
67
2
66
22
12
72
64
18
65
44
93
86
76
100
63
78
32
85
63
29
10
84
14
24
51
35

output:

72

result:

ok single line: '72'

Test #6:

score: 0
Accepted
time: 0ms
memory: 3796kb

input:

500
44
68
9
33
52
71
72
67
59
49
13
85
87
70
21
53
53
45
13
14
31
13
51
58
73
34
1
100
64
98
5
43
83
25
58
38
76
44
50
87
52
82
44
43
75
77
91
47
5
55
46
44
76
48
95
81
71
41
83
65
98
46
89
86
11
69
16
41
40
16
68
80
32
5
74
55
34
86
66
19
63
91
84
79
18
17
45
12
19
92
65
63
74
67
21
93
4
26
23
6
98...

output:

44
50
64
42
74
56
94
65
37
35

result:

ok 10 lines

Test #7:

score: 0
Accepted
time: 1ms
memory: 3724kb

input:

1000
73
55
44
33
95
72
10
62
100
76
3
13
94
35
23
97
39
96
7
19
51
33
22
83
84
54
31
60
10
61
33
59
63
55
40
34
20
79
31
3
17
63
84
19
27
73
45
82
37
98
89
12
50
9
57
55
29
42
23
31
19
62
28
45
43
62
46
70
17
51
42
91
95
13
50
21
75
59
95
22
84
4
6
24
28
40
38
76
24
57
51
14
9
43
32
38
82
26
2
12
90...

output:

73
45
43
32
94
17
97
82
63
20
97
77

result:

ok 12 lines

Test #8:

score: 0
Accepted
time: 1ms
memory: 3728kb

input:

1000
43
38
79
85
36
25
99
27
2
2
57
90
77
56
4
11
39
7
26
73
73
96
51
48
22
72
54
24
95
25
29
32
85
85
10
10
96
5
66
38
71
99
81
37
24
21
28
47
57
13
58
37
24
15
31
41
29
88
67
30
38
93
84
56
7
67
76
69
99
16
55
10
10
51
22
21
48
7
68
71
41
15
4
82
33
78
100
5
45
31
92
47
37
96
4
9
96
92
97
19
63
88...

output:

43
96
87
70
45
50
84
46
53
45
92
48
88
90
76
68
90
58
84
60
94
39

result:

ok 22 lines

Test #9:

score: 0
Accepted
time: 1ms
memory: 3788kb

input:

1000
35
35
100
91
1
32
18
80
2
43
95
65
53
73
80
100
53
52
38
22
9
91
69
54
81
1
65
59
71
73
94
22
44
15
10
37
14
55
47
46
33
92
10
65
52
49
9
86
14
66
21
76
11
71
87
2
50
12
59
86
4
28
8
99
50
76
95
31
8
41
94
73
85
7
65
83
41
61
39
62
3
17
36
5
32
54
91
13
6
61
67
83
52
19
86
12
46
2
88
34
6
66
20...

output:

35
100
53
93
55
87
94
73
97
90
60
72
38
22
87
82

result:

ok 16 lines

Test #10:

score: 0
Accepted
time: 0ms
memory: 3808kb

input:

10
8
3
12
6
24
14
12
9
70
5

output:

24
70

result:

ok 2 lines

Test #11:

score: 0
Accepted
time: 1ms
memory: 3780kb

input:

1000
38
66
1
46
9
62
66
69
97
90
66
96
37
55
2
49
43
38
33
43
17
67
28
64
46
42
54
10
12
82
10
100
6
73
10
37
33
52
56
56
87
38
49
19
7
19
13
10
89
27
4
50
81
51
53
22
78
43
19
36
82
99
2
66
97
6
9
53
7
87
72
14
55
76
12
31
72
91
42
6
79
60
50
20
4
13
2
4
79
20
74
11
12
42
55
28
46
38
11
21
38
2
92
...

output:

38
33
52
72
51
70
30
72
75
85
70
92
48
99
90
72

result:

ok 16 lines

Test #12:

score: 0
Accepted
time: 1ms
memory: 3728kb

input:

1000
89
36
1
99
9
8
64
42
36
52
2
19
100
67
80
64
81
87
13
49
94
14
58
32
39
34
52
52
84
48
100
63
38
13
42
6
94
59
15
23
82
30
14
65
38
11
33
23
2
91
24
33
18
31
54
77
44
21
59
17
36
52
27
5
5
76
35
62
12
35
58
75
98
48
64
25
4
53
5
86
26
24
44
5
62
82
8
78
79
20
70
19
83
99
46
8
48
63
99
16
57
35
...

output:

89
35
62
64

result:

ok 4 lines

Test #13:

score: 0
Accepted
time: 0ms
memory: 3776kb

input:

5
3
3
2
5
7

output:

3

result:

ok single line: '3'