- C24linchen's blog
基于C++虚拟机的题解
- 2025-8-31 21:39:38 @
标有(新)的无法与原版兼容
删掉input后面的数据类型就行
A1001(新)
"input int 0",
"input int 1",
"calc add 0 1",
"output int 0",
"exit"
P148(新)
"input int 0",
"write 2 10",
"ifp == 0 1 5",
"++ 1",
"output int 1",
"output char 2",
"gotp -4",
"exit"
P1115(旧)
"write 3 -114514",
"input 0",
"input 1",
"-- n",
"if < 1 4 5",
"copy 1 2",
"if == 0 4 18",
"input 1",
"calc add 1 2 6",
"if > 1 6 12",
"copy 6 2",
"goto 13",
"copy 1 2",
"if < 3 2 15",
"goto 16",
"copy 2 3",
"-- 0",
"goto 6",
"output int 3",
"exit"