QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#518581#1662. ASCII Automata Artucup-team2880AC ✓11ms5028kbC++206.9kb2024-08-13 22:21:062024-08-13 22:21:07

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

NE?(ER)C++|(IS)*?|(CHA((LL))ENGING)

output:

23 57
      +---+               +----+        +---+            
S->+->+ N +->+-------->+->+ ER +->+->+->+ C +->+->+->+->F
   |  +---+  |         |  +----+  |  |  +---+  |  |  |   
   |         |  +---+  |          |  |         |  |  |   
   |         +->+ E +->+          |  +<--------+  |  |   
   |...

result:

ok 23 57

Test #2:

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

input:

N(ER)C

output:

3 26
   +---+  +----+  +---+   
S->+ N +->+ ER +->+ C +->F
   +---+  +----+  +---+   

result:

ok 3 26

Test #3:

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

input:

C|ON|TEST

output:

11 20
      +---+         
S->+->+ C +---->+->F
   |  +---+     |   
   |            |   
   |  +----+    |   
   +->+ ON +--->+   
   |  +----+    |   
   |            |   
   |  +------+  |   
   +->+ TEST +->+   
      +------+      

result:

ok 11 20

Test #4:

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

input:

A+

output:

5 17
      +---+      
S->+->+ A +->+->F
   |  +---+  |   
   |         |   
   +<--------+   

result:

ok 5 17

Test #5:

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

input:

B?

output:

6 17
                 
S->+-------->+->F
   |         |   
   |  +---+  |   
   +->+ B +->+   
      +---+      

result:

ok 6 17

Test #6:

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

input:

C*

output:

8 17
                 
S->+-------->+->F
   |         |   
   |  +---+  |   
   +->+ C +->+   
   |  +---+  |   
   |         |   
   +<--------+   

result:

ok 8 17

Test #7:

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

input:

Z

output:

3 11
   +---+   
S->+ Z +->F
   +---+   

result:

ok 3 11

Test #8:

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

input:

((((DEF)|(GH)|(I))))

output:

11 19
      +-----+      
S->+->+ DEF +->+->F
   |  +-----+  |   
   |           |   
   |  +----+   |   
   +->+ GH +-->+   
   |  +----+   |   
   |           |   
   |  +---+    |   
   +->+ I +--->+   
      +---+        

result:

ok 11 19

Test #9:

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

input:

ESYXKNQELMVKOHKSUJQHLPDUWFWNZRNPQQVHFYXBSYCHJPPBURRMFBKNQZKZMFITHOGXZQHCOVGWLSQABGRWWNOSEUDVSVGXHHDH

output:

3 110
   +------------------------------------------------------------------------------------------------------+   
S->+ ESYXKNQELMVKOHKSUJQHLPDUWFWNZRNPQQVHFYXBSYCHJPPBURRMFBKNQZKZMFITHOGXZQHCOVGWLSQABGRWWNOSEUDVSVGXHHDH +->F
   +--------------------------------------------------------------------...

result:

ok 3 110

Test #10:

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

input:

Q|W|R|K|E|O|R|I|V|E|Z|M|P|Y|U|I|K|E|X|V|L|A|G|F|M|L|I|W|R|Z|I|O|A|P|X|A|F|X|F|X|M|I|M|Y|X|Q|N|V|T|Y

output:

199 17
      +---+      
S->+->+ Q +->+->F
   |  +---+  |   
   |         |   
   |  +---+  |   
   +->+ W +->+   
   |  +---+  |   
   |         |   
   |  +---+  |   
   +->+ R +->+   
   |  +---+  |   
   |         |   
   |  +---+  |   
   +->+ K +->+   
   |  +---+  |   
   |         |   
   | ...

result:

ok 199 17

Test #11:

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

input:

(((((((((((((((((((((((((((((((((((((((((((((((((N)))))))))))))))))))))))))))))))))))))))))))))))))

output:

3 11
   +---+   
S->+ N +->F
   +---+   

result:

ok 3 11

Test #12:

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

input:

INYWKMBDKYEFGBBONRCUUYMWAICQANQCECIVRHEKLLJEKAGJU|MLWORHGFUGRWAQGOXAXYDPMWJSODKPLRTOLCNGZXXVPUPGQYHU

output:

7 66
      +---------------------------------------------------+       
S->+->+ INYWKMBDKYEFGBBONRCUUYMWAICQANQCECIVRHEKLLJEKAGJU +-->+->F
   |  +---------------------------------------------------+   |   
   |                                                          |   
   |  +--------------------...

result:

ok 7 66

Test #13:

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

input:

(G|OFC|C|(DK))(RMOD|(V))|((S(Y)(JB)(HZTS|S|S|(M((KP(I|Q)(N)))(((JQ|(X|JH))))))GRY)|TS|F|((WRKS)|WP))

output:

55 108
         +---+          +------+                                                                            
S->+->+->+ G +--->+->+->+ RMOD +->+-------------------------------------------------------------------->+->F
   |  |  +---+    |  |  +------+  |                                        ...

result:

ok 55 108

Test #14:

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

input:

(OS+|((VT(UZS)+))|U+|((F)|Z+++)+|((O)(R+|S+)+|T+++|FD|L)(O|Q+)++IFGX+(L|K|(TU(I)+)++)+HP(Q)+U)+|Q|M+

output:

77 186
            +---+     +---+                                                                                                                                                               
S->+->+->+->+ O +->+->+ S +->+----------------------------------------------------------------------------...

result:

ok 77 186

Test #15:

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

input:

(((JU)?|(M)?|D(C|A|D)??X|P|H?|G|Y))(L?)(A?)S???((A|R?)??)((G|J)??)BQ((T))?(AXR??Z|D?Y((Z)((O))??)YW)

output:

50 237
                                                                                                                                                           +----+                  +----+                     +---+                          
S->+->+--------->+-------------------------->+->+------...

result:

ok 50 237

Test #16:

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

input:

AH|(TY|T|W)*|((W*|(X|(GV|A*FJ*S(Y)Y*)|H))**(((JE)***JUE|K|Z*|Z*)***(L***P((M|IB*)|(K|(O|Y))*|P)*)*))

output:

76 235
      +----+                                                                                                                                                                                                                               
S->+->+ AH +---------------------------------------------...

result:

ok 76 235

Test #17:

score: 0
Accepted
time: 5ms
memory: 4392kb

input:

O+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

output:

201 605
                                                                                                                                                                                                                                                                                                    ...

result:

ok 201 605

Test #18:

score: 0
Accepted
time: 8ms
memory: 4836kb

input:

V???????????????????????????????????????????????????????????????????????????????????????????????????

output:

300 605
                                                                                                                                                                                                                                                                                                    ...

result:

ok 300 605

Test #19:

score: 0
Accepted
time: 11ms
memory: 5028kb

input:

S***************************************************************************************************

output:

498 605
                                                                                                                                                                                                                                                                                                    ...

result:

ok 498 605

Test #20:

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

input:

NTN|J+|H|O++++++++++++++++++++++++++M+++++++++|F++++W+++++++++++++++|WF|J+++NAH+Z+++++GRXI++P+++++++

output:

125 234
      +-----+                                                                                                                                                                                                                             
S->+->+ NTN +--------------------------------------------...

result:

ok 125 234

Test #21:

score: 0
Accepted
time: 4ms
memory: 4664kb

input:

G??????????????????????????????????????????????????????????????????????????????BI???????????????????

output:

237 607
                                                                                                                                                                                                                                                                                                    ...

result:

ok 237 607

Test #22:

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

input:

B***|BFP*|G*******|U|K*|B|H***********A***W****H************************************************D*ER

output:

327 455
                                                                                                                                                                                                                                                                                                    ...

result:

ok 327 455

Test #23:

score: 0
Accepted
time: 8ms
memory: 4636kb

input:

K+++++*+??++?*?*?+**?+***+++++*?*?*+*+*****+?*+**+???+?**?+***?+?+??+?**+???+?*****?+*?*+*?*++??++?*

output:

341 605
                                                                                                                                                                                                                                                                                                    ...

result:

ok 341 605

Test #24:

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

input:

W*??+**?+*****?*+?+??+?+???*?*+*?*????+++????+?+**+??*++?+*?+*+??+?*?*+???*+???*+**?+???*?+?????+++?

output:

323 605
                                                                                                                                                                                                                                                                                                    ...

result:

ok 323 605

Test #25:

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

input:

I+*+?+?*++*+*?*|QE?I|PR+**+???*??***?+++*?****+*?+*+|Q+*+*+*??*+*??+?++*?+*++**?*?????*+*+*?*N+U**+?

output:

302 295
                                                                                                                                                                                                                                                                                                    ...

result:

ok 302 295

Test #26:

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

input:

(((M*+?A)*????((E(JY)??(BT))*+?+++++)??***++(N)++?*??((AN|A)+*++Y???*+)??L?HQNQX??(R(OO))+O+++E))??+

output:

62 434
                                                                                                                                                                                                                                                                                                     ...

result:

ok 62 434

Test #27:

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

input:

(Q*|B|D(M)?PNT|H|U|H|D?++|(P***?)|OG|W|(C*+?)|(R+?*+**?*M++))****+|X*EM|Z|H|Z|(MM)|(T*MW)ESCFN?*?|A?

output:

189 120
                                                                                                                        
S->+->+->+--------------------------------------------------------------------------------------------------->+->+->+->F
   |  |  |                                        ...

result:

ok 189 120

Test #28:

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

input:

((HR+MJ|X++|OVHLR**++Q)+??*?|QI|B*+BGP|Q|TCRB?XTEG?)??((D|H|A?)*++*)*?(ARCIPKV?(NUZ*Z*R)WVEZ+)+|LIXW

output:

83 261
                                                                                                                                                                      +--------+               +----+                            +---+  +-----+     +---+            
S->+->+------------------------...

result:

ok 83 261