QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#690650#6556. Text Editorucup-team8740 1ms9720kbC++175.8kb2024-10-31 00:12:472024-10-31 00:12:47

詳細信息

Test #1:

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

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

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

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

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

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

/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)
100008 6523
101196 6556
101196 6568
102258 6600
102258 6631
102438 6654
102438 6685
102636 6708
102636 6740
102852 6764
102852 6796
103086 6820
104202 6854
104202 6886...

Second Run Input


Second Run Output


result: