{"trustable":true,"prependHtml":"\u003cscript\u003e window.katexOptions \u003d { disable: true }; \u003c/script\u003e\n\u003cscript type\u003d\"text/x-mathjax-config\"\u003e\n MathJax.Hub.Config({\n tex2jax: {\n inlineMath: [[\u0027$$$\u0027,\u0027$$$\u0027], [\u0027$\u0027,\u0027$\u0027]],\n displayMath: [[\u0027$$$$$$\u0027,\u0027$$$$$$\u0027], [\u0027$$\u0027,\u0027$$\u0027]]\n }\n });\n\u003c/script\u003e\n\u003cscript async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS-MML_HTMLorMML\" type\u003d\"text/javascript\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv class\u003d\"panel_content\"\u003e一个名叫是PigHeadThree的研究组织设计了一台实验用的计算机,命名为PpMm。PpMm只能执行简单的六种命令A,B,C,D,E,F;只有二个内存M1,M2;三个寄存器R1,R2,R3。六种命令的含义如下:\u003cbr\u003e\u0026nbsp;\u0026nbsp;命令A:将内存M1的数据装到寄存器R1中;\u003cbr\u003e\u0026nbsp;\u0026nbsp;命令B:将内存M2的数据装到寄存器R2中;\u003cbr\u003e\u0026nbsp;\u0026nbsp;命令C:将寄存器R3的数据装到内存M1中;\u003cbr\u003e\u0026nbsp;\u0026nbsp;命令D:将寄存器R3的数据装到内存M2中;\u003cbr\u003e\u0026nbsp;\u0026nbsp;命令E:将寄存器R1中的数据和寄存器R2中的数据相加,结果放到寄存器R3中;\u003cbr\u003e\u0026nbsp;\u0026nbsp;命令F:将寄存器R1中的数据和寄存器R2中的数据相减,结果放到寄存器R3中。\u003cbr\u003e你的任务是:设计一个程序模拟PpMm的运行。\u003cbr\u003e\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"有若干组,每组有2行,第一行是2个整数,分别表示M1和M2中的初始内容;第二行是一串长度不超过200的由大写字母A到F组成的命令串,命令串的含义如上所述。"}},{"title":"Output","value":{"format":"HTML","content":"对应每一组的输入,输出只有一行,二个整数,分别表示M1,M2的内容;其中M1和M2之间用逗号隔开。\u003cbr\u003e\u003cbr\u003e其他说明:R1,R2,R3的初始值为0,所有中间结果都在-2^31和2^31之间。"}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e100 288\r\nABECED\r\n876356 321456\r\nABECAEDBECAF\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e388,388\r\n2717080,1519268\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}}]}