QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#141867#2641. Juggling TroupesdoiAC ✓35ms16960kbC++233.2kb2023-08-18 02:59:232023-08-18 02:59:48

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

0

output:

0

result:

ok single line: '0'

Test #2:

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

input:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok single line: '000000000000000000000000000000...0000000000000000000000000000000'

Test #3:

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

input:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

output:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok single line: '111111111111111111111111111111...1111111111111111111111111111111'

Test #4:

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

input:

2

output:

0

result:

ok single line: '0'

Test #5:

score: 0
Accepted
time: 25ms
memory: 12160kb

input:

222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222...

output:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok single line: '111111111111111111111111111111...1111111111111111111111111111111'

Test #6:

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

input:

2111111111112

output:

1111111111111

result:

ok single line: '1111111111111'

Test #7:

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

input:

2111111121111111211111112111111121111111211111111111112

output:

1111111111111111111111111111111111111111110111111111111

result:

ok single line: '1111111111111111111111111111111111111111110111111111111'

Test #8:

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

input:

2111111121111111211111112111111121111111211111112111111121111111211111112111111121111111211111111112

output:

1111111111111111111111111111111111111111111111111111111111111111110111111111111111111111111111111111

result:

ok single line: '111111111111111111111111111111...1111111111111111111111111111111'

Test #9:

score: 0
Accepted
time: 31ms
memory: 12124kb

input:

200000000211111112111111121111111211111112111111121111111211111112111111121111111211111112111111121111111211111112111111121111111211111112111111121111111211111112111111121111111211111112111111121111111211111112111111121111111211111112111111121111111211111112111111121111111211111112111111121111111211...

output:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok single line: '111111111111111111111111111111...1111111111111111111111111111111'

Test #10:

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

input:

12100212

output:

10111111

result:

ok single line: '10111111'

Test #11:

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

input:

000111222000222111222001

output:

111111101111111111111111

result:

ok single line: '111111101111111111111111'

Test #12:

score: 0
Accepted
time: 28ms
memory: 12140kb

input:

000010211211211022111110020220121010000002110120211122201111010021210000102021200021102111011020201022121220100111102012011120001102211101022102122110102102122202000100112122220112101222120110120020102010201200201202000111211220221222222101210021112102010222111122101022120111200120002212112122121110...

output:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok single line: '111111111111111111111111111111...1111111111111111111111111111111'

Test #13:

score: 0
Accepted
time: 35ms
memory: 14500kb

input:

001002021111201120202100102022210121012022110000120010100102000022020000020020101002022020002202020200220001000001210210222020010000120000000220220201011221000211002010200202011010201202122011100020012100110012000200200021001002101022101100010020121000010001110000212100000220200220200221202100020121...

output:

001111111110111111111111111111111111111111111101011010100110101011111000101101101011111111111011111111111001000111011111111111110001011000011111111111111011111110110111011101111111011111111111110101110110110101101011010110101011101111111100010111011100010001110010111110011111111111111011111111111111...

result:

ok single line: '001111111110111111111111111111...1111111111011111111111111111111'

Test #14:

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

input:

000000000000000000001111111111111111111120202020202020202020

output:

000000000000000000011111111110111111111111111111111111111111

result:

ok single line: '000000000000000000011111111110111111111111111111111111111111'

Test #15:

score: 0
Accepted
time: 2ms
memory: 4908kb

input:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok single line: '000000000000000000000000000000...1111111111111111111111111111111'

Test #16:

score: 0
Accepted
time: 20ms
memory: 16960kb

input:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok single line: '000000000000000000000000000000...1111111111111111111111111111111'

Test #17:

score: 0
Accepted
time: 2ms
memory: 3624kb

input:

201121120100221202120200202012122220021011022222221112102110211102022001122022202122122212011102012122002012211201111102022011211120122020212210020200112112022110112212101110100011112220212100221220201102120110201122211121111012211220112211111010020200100002001001001022022111220020100101002222111220...

output:

111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111...

result:

ok single line: '111111111111111111111111111111...1111111111111111111111111111111'

Test #18:

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

input:

1120220221221010111110002200002221201001

output:

1111111101111111111111011111101111111101

result:

ok single line: '1111111101111111111111011111101111111101'

Test #19:

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

input:

1222021100122110010000212202101121012010

output:

1111111111111111010101111111111111111110

result:

ok single line: '1111111111111111010101111111111111111110'

Test #20:

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

input:

1200020101112221121002102001012212220122

output:

0111111111110111111111111111111111111111

result:

ok single line: '0111111111110111111111111111111111111111'