QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#518575#1662. ASCII Automata Artucup-team2880WA 0ms4056kbC++206.8kb2024-08-13 22:17:552024-08-13 22:17:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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

input:

N(ER)C

output:

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

result:

ok 3 26

Test #3:

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

input:

C|ON|TEST

output:

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

result:

ok 11 20

Test #4:

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

input:

A+

output:

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

result:

ok 5 17

Test #5:

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

input:

B?

output:

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

result:

ok 6 17

Test #6:

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

input:

C*

output:

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

result:

ok 8 17

Test #7:

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

input:

Z

output:

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

result:

ok 3 11

Test #8:

score: -100
Wrong Answer
time: 0ms
memory: 3768kb

input:

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

output:

11 22
      +--------+      
S->+->+ (((DEF +->+->F
   |  +--------+  |   
   |              |   
   |  +----+      |   
   +->+ GH +----->+   
   |  +----+      |   
   |              |   
   |  +---+       |   
   +->+ I +------>+   
      +---+           

result:

wrong answer expected: 11 19, found: 11 22