QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#690630#6556. Text Editorucup-team8740 1ms12028kbC++175.7kb2024-10-30 23:59:262024-10-30 23:59:27

詳細信息

Test #1:

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

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: 0ms
memory: 5848kb

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: 5880kb

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: 5852kb

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: 5596kb

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: 0
Stage 1: Program answer Memory Limit Exceeded

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


Second Run Input


Second Run Output


result: