Record Case Detail

Notes

This function is in beta test. Please help improve it in the issues here.

Stderr


        

Hints

Your answer may be identical to the JOJ answer in the first several lines.

However, you will still get Wrong Answer because the complete output may be longer and there might be errors in the future lines.

Please double check your code to solve this problem and try again.

Your Answer

PUSHI 0
0 4 3 2 1 wrong !stack
HALT NOOP STORE PUSHI 2 ADD ADD PUSHI 1 NOR LOAD PUSHI 1 LOAD PUSHI 1 LOAD wrong !queue
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
LOAD
999 4 3 2 1 wrong !stack
HALT NOOP STORE PUSHI 2 ADD ADD PUSHI 1 NOR LOAD PUSHI 1 LOAD PUSHI 1 wrong !queue
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
PUSHI 1
1 999 4 3 2 1 wrong !stack
HALT NOOP STORE PUSHI 2 ADD ADD PUSHI 1 NOR LOAD PUSHI 1 LOAD wrong !queue
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
LOAD
888 999 4 3 2 1 wrong !stack
HALT NOOP STORE PUSHI 2 ADD ADD PUSHI 1 NOR LOAD PUSHI 1 wrong !queue
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
PUSHI 1
1 888 999 4 3 2 1 wrong !stack
HALT NOOP STORE PUSHI 2 ADD ADD PUSHI 1 NOR LOAD wrong !queue
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
LOAD
888 888 999 4 3 2 1 wrong !stack
HALT NOOP STORE PUSHI 2 ADD ADD PUSHI 1 NOR wrong !queue
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
NOR
-889 999 4 3 2 1 wrong !stack
HALT NOOP STORE PUSHI 2 ADD ADD PUSHI 1 wrong !queue
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
PUSHI 1
1 -889 999 4 3 2 1 wrong !st

JOJ Answer

PUSHI 0
1 2 3 4 0 
LOAD PUSHI 1 LOAD PUSHI 1 LOAD NOR PUSHI 1 ADD ADD PUSHI 2 STORE NOOP HALT 
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
LOAD
1 2 3 4 999 
PUSHI 1 LOAD PUSHI 1 LOAD NOR PUSHI 1 ADD ADD PUSHI 2 STORE NOOP HALT 
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
PUSHI 1
1 2 3 4 999 1 
LOAD PUSHI 1 LOAD NOR PUSHI 1 ADD ADD PUSHI 2 STORE NOOP HALT 
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
LOAD
1 2 3 4 999 888 
PUSHI 1 LOAD NOR PUSHI 1 ADD ADD PUSHI 2 STORE NOOP HALT 
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
PUSHI 1
1 2 3 4 999 888 1 
LOAD NOR PUSHI 1 ADD ADD PUSHI 2 STORE NOOP HALT 
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
LOAD
1 2 3 4 999 888 888 
NOR PUSHI 1 ADD ADD PUSHI 2 STORE NOOP HALT 
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
NOR
1 2 3 4 999 -889 
PUSHI 1 ADD ADD PUSHI 2 STORE NOOP HALT 
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
PUSHI 1
1 2 3 4 999 -889 1 
ADD ADD PUSHI 2 STORE NOOP HALT 
999 888 1 2 0 0 0 0 0 0 0 0 0 0 0 1 
ADD
1 2 3 4 999 -888 
ADD PUSHI 2 STORE NOOP HALT 
999 888 1 2 0 0 0 0