{"trustable":false,"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":"堆堆和月月是一对好基友,最近他们在练习击剑这个游戏。因为堆堆是一位究极剑圣,所以每次月月都会惨败,最近高数老师布置了一道课后作业给月月学长写,可是由于被堆堆打击了不想写,你可以帮他完成下作业吗?\n 作为第一签到题,堆堆哥哥让你计算\n \u003ci\u003eA + B\u003c/i\u003e. \n \u003cbr\u003e \n\u003c/div\u003e"}},{"title":"Input","value":{"format":"HTML","content":"数据包含多组输入,每行输入两个数字A,B"}},{"title":"Output","value":{"format":"HTML","content":"每一行数据输出\n\u003ci\u003eA + B\u003c/i\u003e \n\u003cbr\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"1 1\u003cbr\u003e\n2 3"}},{"title":"Sample Output","value":{"format":"HTML","content":"2\u003cbr\u003e\n5"}},{"title":"Hint","value":{"format":"HTML","content":"\u003cp\u003e注意输入数据中包含多组读入,请务必读到文件末尾。\u003cbr\u003e\nC++示例代码:\u003c/p\u003e\u003cp\u003e\n#include \u0026ltiostream\u0026gt\u003c/p\u003e\u003cp\u003e\nusing namespace std;\u003c/p\u003e\u003cp\u003e\nint main(){\u003c/p\u003e\u003cp\u003e\n \u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp int a;\u003c/p\u003e\u003cp\u003e \n \u0026nbsp\u0026nbsp\u0026nbsp\u0026nbspwhile(cin\u003e\u003ea){\u003c/p\u003e\u003cp\u003e\n \u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp cout\u003c\u0026lta\u003c\u003c\u0027\\n\u0027; \u003c/p\u003e\u003cp\u003e\n \u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp}\u003c/p\u003e\u003cp\u003e\n \u0026nbsp\u0026nbsp\u0026nbsp\u0026nbspreturn 0;\u003c/p\u003e\u003cp\u003e\n}\u003c/p\u003e\n\u003cbr\u003e\nC语言示例代码:\u003cbr\u003e\n#include \u0026ltstdio.h\u0026gt\u003c/p\u003e\u003cp\u003e\nint main(){\u003c/p\u003e\u003cp\u003e\n \u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp int a;\u003c/p\u003e\u003cp\u003e \n \u0026nbsp\u0026nbsp\u0026nbsp\u0026nbspwhile(scanf(\"%d\",\u0026a)!\u003dEOF){\u003c/p\u003e\u003cp\u003e\n \u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp printf(\"%d\\n\",a); \u003c/p\u003e\u003cp\u003e\n \u0026nbsp\u0026nbsp\u0026nbsp\u0026nbsp}\u003c/p\u003e\u003cp\u003e\n \u0026nbsp\u0026nbsp\u0026nbsp\u0026nbspreturn 0;\u003c/p\u003e\u003cp\u003e\n}\u003c/p\u003e"}}]}