Notes
This function is in beta test. Please help improve it in the issues
here.
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
**0 7 **PUSHI 5 STORE HALT **8 7 4 1 0 8 6 3 2 7 3 6 9 6 0 2 First instr removed Inpush PUSHI worked 0x602000000050 0 7 5 STORE HALT 8 7 4 1 0 8 6 3 2 7 3 6 9 6 0 2 Loop stack: 0 7 5 Loop instrlist:STORE HALT Loop mem:8 7 4 1 0 8 6 3 2 7 3 6 9 6 0 2 First instr removed STOREaddress = 0x6020000000ac STOREval = 0x602000000030 STOREmem[address] = 7 0x602000000070 0 HALT 8 7 4 1 0 7 6 3 2 7 3 6 9 6 0 2 Loop stack: 0 Loop instrlist:HALT Loop mem:8 7 4 1 0 7 6 3 2 7 3 6 9 6 0 2 First instr removed Halt changed 0x602000000090 0 8 7 4 1 0 7 6 3 2 7 3 6 9 6 0 2 Loop stack: 0 Loop instrlist: Loop mem:8 7 4 1 0 7 6 3 2 7 3 6 9 6 0 2 wuhu work is ended Work done 0 8 7 4 1 0 7 6 3 2 7 3 6 9 6 0 2
JOJ Answer
PUSHI 5 0 7 5 STORE HALT 8 7 4 1 0 8 6 3 2 7 3 6 9 6 0 2 STORE 0 HALT 8 7 4 1 0 7 6 3 2 7 3 6 9 6 0 2 HALT 0 8 7 4 1 0 7 6 3 2 7 3 6 9 6 0 2