QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#690672#6556. Text Editorucup-team8740 2ms11900kbC++175.8kb2024-10-31 00:34:202024-10-31 00:34:20

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

First Run Input

17
insert 0 abcdef
print 0 6
erase 4 5
print 0 5
copy 0 3
paste 1
print 0 8
cut 2 4
print 0 6
undo
print 0 8
paste 6
print 0 10
redo
redo
print 0 10
serialize

First Run Output

abcdef
abcdf
aabcbcdf
aabcdf
aabcbcdf
aabcbcbcdf
aabcbcbcdf
100000021710000006insert10000001010000006abcdef10000005print10000001010000001610000005erase10000001410000001510000005print10000001010000001510000004copy10000001010000001310000005paste10000001110000005print10000001010000001810000003cut100000...

Second Run Input

2
deserialize 100000021710000006insert10000001010000006abcdef10000005print10000001010000001610000005erase10000001410000001510000005print10000001010000001510000004copy10000001010000001310000005paste10000001110000005print10000001010000001810000003cut10000001210000001410000005print100000010100000016100...

Second Run Output

aabcbcbcdf

result:

ok stage 2 is ok!

Test #2:

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

First Run Input

1
serialize

First Run Output

10000001110000009serialize

Second Run Input

1
deserialize 10000001110000009serialize

Second Run Output


result:

ok stage 2 is ok!

Test #3:

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

First Run Input

31
undo
redo
redo
undo
undo
undo
redo
undo
redo
undo
undo
undo
undo
undo
redo
redo
undo
undo
redo
undo
redo
redo
redo
undo
undo
undo
redo
undo
redo
redo
serialize

First Run Output

100000023110000004undo10000004redo10000004redo10000004undo10000004undo10000004undo10000004redo10000004undo10000004redo10000004undo10000004undo10000004undo10000004undo10000004undo10000004redo10000004redo10000004undo10000004undo10000004redo10000004undo10000004redo10000004redo10000004redo10000004undo10...

Second Run Input

31
deserialize 100000023110000004undo10000004redo10000004redo10000004undo10000004undo10000004undo10000004redo10000004undo10000004redo10000004undo10000004undo10000004undo10000004undo10000004undo10000004redo10000004redo10000004undo10000004undo10000004redo10000004undo10000004redo10000004redo10000004red...

Second Run Output


result:

ok stage 2 is ok!

Test #4:

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

First Run Input

31
undo
redo
redo
undo
undo
redo
redo
redo
undo
undo
undo
redo
redo
undo
redo
undo
redo
undo
redo
redo
redo
undo
redo
undo
redo
redo
undo
undo
redo
undo
serialize

First Run Output

100000023110000004undo10000004redo10000004redo10000004undo10000004undo10000004redo10000004redo10000004redo10000004undo10000004undo10000004undo10000004redo10000004redo10000004undo10000004redo10000004undo10000004redo10000004undo10000004redo10000004redo10000004redo10000004undo10000004redo10000004undo10...

Second Run Input

31
deserialize 100000023110000004undo10000004redo10000004redo10000004undo10000004undo10000004redo10000004redo10000004redo10000004undo10000004undo10000004undo10000004redo10000004redo10000004undo10000004redo10000004undo10000004redo10000004undo10000004redo10000004redo10000004redo10000004undo10000004red...

Second Run Output


result:

ok stage 2 is ok!

Test #5:

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

First Run Input

31
undo
undo
undo
redo
redo
redo
redo
undo
undo
redo
redo
undo
undo
undo
redo
redo
redo
redo
undo
redo
redo
undo
undo
undo
redo
undo
undo
undo
undo
redo
serialize

First Run Output

100000023110000004undo10000004undo10000004undo10000004redo10000004redo10000004redo10000004redo10000004undo10000004undo10000004redo10000004redo10000004undo10000004undo10000004undo10000004redo10000004redo10000004redo10000004redo10000004undo10000004redo10000004redo10000004undo10000004undo10000004undo10...

Second Run Input

31
deserialize 100000023110000004undo10000004undo10000004undo10000004redo10000004redo10000004redo10000004redo10000004undo10000004undo10000004redo10000004redo10000004undo10000004undo10000004undo10000004redo10000004redo10000004redo10000004redo10000004undo10000004redo10000004redo10000004undo10000004und...

Second Run Output


result:

ok stage 2 is ok!

Test #6:

score: 100
Accepted
time: 2ms
memory: 11900kb

First Run Input

1001
insert 0 u]^rGH]V+A3/VCu}4-dod,hyG&]WkL1)rg$W4\W0XL7sfyA[GNpfX2rx8Sc6$fmzW&x3E//Q0M\7=?Io7mupWV9Y4z6aY4E9ia$S{1KfioW29lST';?emw,Upk.b`^tl.O^btxvAx>:=&rC@6k`[GQCv;s[myKiSV1tp!Z)bj:
copy 0 170
paste 170
copy 0 340
paste 340
cut 415 652
copy 0 443
paste 443
cut 282 500
erase 0 576
copy 0 92
paste ...

First Run Output

/VCu}4-dod,hyG&]WkL1)rg)bj:/VCu}4-dyKlPm}+uRG&]WkL1)rg)bj:/V)bj:/VCu})bj:/)rg)bj:/VCG&]WkL1)rg)bj:/VCu}4-dyKlPm}+uRG&]WkL1)rg)bj:/V)
/VCu}4/VCu}4
4/VCu}4/VCu}4/VCu}4/VCu}4/VCu}4/4/VCu}4/VCu}4/VCu}4/VCu}4/VCu}4/VCu}4/VCu}4/VCu}4/VCu}4/VCu}
Cu4//VCuCu}4//VCu}4/Cu}4//VCu}4/VCu}CuCu}4/u}4//VCu}4/VCu}CuC...

Second Run Input

1001
deserialize 10000004100110000006insert10000001010000170u]^rGH]V+A3/VCu}4-dod,hyG&]WkL1)rg$W4\W0XL7sfyA[GNpfX2rx8Sc6$fmzW&x3E//Q0M\7=?Io7mupWV9Y4z6aY4E9ia$S{1KfioW29lST';?emw,Upk.b`^tl.O^btxvAx>:=&rC@6k`[GQCv;s[myKiSV1tp!Z)bj:10000004copy1000000101000000317010000005paste1000000317010000004copy10...

Second Run Output

4/}4/u}4/
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu
uuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuu...

result:

ok stage 2 is ok!

Test #7:

score: 0
Stage 2: Program answer Memory Limit Exceeded

First Run Input

1000 1000
insert 0 w,[bkd4hhpQ'MmMc:IK6O#ZVGwy`{iW,dmR]!Zo)u{|F*Y_"SI9dsR.a@Y@5YU[vEAya3.Y<C~U+JY66Co-HfJ*WN
undo
redo
erase 75 84
cut 3 78
paste 2
undo
erase 1 3
redo
erase 1 3
copy 0 1
cut 0 1
redo
redo
redo
undo
copy 0 1
paste 1
redo
undo
copy 0 1
undo
undo
copy 0 4
cut 1 5
undo
cut 0 5
redo
redo...

First Run Output

w,[,[WNWN
bb{b{
NNNN
*
*
*
AERER
ERRKRR
10000004100110000006insert10000001010000089w,[bkd4hhpQ'MmMc:IK6O#ZVGwy`{iW,dmR]!Zo)u{|F*Y_"SI9dsR.a@Y@5YU[vEAya3.Y<C~U+JY66Co-HfJ*WN10000004undo10000004redo10000005erase1000000275100000028410000003cut100000013100000027810000005paste10000001210000004undo1000000...

Second Run Input

1001
deserialize 10000004100110000006insert10000001010000089w,[bkd4hhpQ'MmMc:IK6O#ZVGwy`{iW,dmR]!Zo)u{|F*Y_"SI9dsR.a@Y@5YU[vEAya3.Y<C~U+JY66Co-HfJ*WN10000004undo10000004redo10000005erase1000000275100000028410000003cut100000013100000027810000005paste10000001210000004undo10000005erase10000001110000001...

Second Run Output


result: