QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#759134#9565. Birthday Giftucup-team4936WA 17ms3844kbC++201.6kb2024-11-17 21:57:142024-11-17 21:57:14

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3636kb

input:

5
0110101
01020102
0000021111
1012121010
0100202010

output:

3
4
0
6
0

result:

ok 5 number(s): "3 4 0 6 0"

Test #2:

score: 0
Accepted
time: 17ms
memory: 3844kb

input:

50000
1010110101
1010101010
0101010101
0101010010
0101010010
1010101010
0101001010
1010010010
0100101010
1010101001
1010100101
0101010100
0100101011
0101101010
1011010110
1011010101
1010010101
1010010010
0101010101
0010101010
0101011010
0100101010
1010101010
1010010101
1010101101
1101010101
10100101...

output:

0
10
10
4
4
10
0
4
4
6
2
8
2
2
0
4
2
4
10
8
2
4
10
2
4
8
2
8
8
4
8
4
4
6
4
4
4
6
10
10
2
2
0
10
8
10
0
10
10
10
4
10
8
10
0
8
4
0
8
2
8
0
6
2
8
10
4
10
10
2
10
2
10
8
6
4
2
8
8
0
8
10
8
10
8
10
2
6
10
4
10
8
10
4
10
6
10
10
10
6
6
6
4
10
10
10
2
2
8
10
6
10
10
8
4
10
6
10
2
2
8
2
10
4
6
0
10
4
6
2
1...

result:

ok 50000 numbers

Test #3:

score: -100
Wrong Answer
time: 12ms
memory: 3588kb

input:

5000
1010101010101010101110101010101010100101010101010101010110101010101010101010101010101010101010101010
0101010101010101010101010101101010101010101010101010101010101010101010101010100101010101010110101010
010101010101010101010101010101010101010101010101010101010101010101010100101010101010101010101...

output:

58
16
44
26
2
30
62
14
16
68
44
78
58
54
52
10
22
60
12
60
54
82
64
68
44
4
34
12
82
16
64
20
14
46
48
12
94
22
82
58
30
40
8
88
62
20
14
46
86
36
16
20
18
74
66
36
80
98
26
0
32
72
40
70
28
80
52
26
94
62
32
48
18
92
44
84
48
4
28
32
34
50
80
54
80
32
62
62
76
70
78
16
16
2
2
58
46
18
56
26
36
56
7...

result:

wrong answer 16th numbers differ - expected: '4', found: '10'