{"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":"MD","content":"根据输入的两数计算出两数之和。"}},{"title":"Input","value":{"format":"MD","content":"第一行为一个整数 $T$,表示有 $T$ 组测试数据。\n\n接下来 $T$ 行,每行为空格分割的两个整数 $A$ 和 $B$。"}},{"title":"Output","value":{"format":"MD","content":"对于任意一组输入的整数 $A$ 和 $B$,你应当在一行内输出 $A+B$ 的值。两组输出之间需换行分割。"}},{"title":"Sample","value":{"format":"MD","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\u003e\u003cpre\u003e2\n1 5\n10 20\n\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e\u003cpre\u003e6\n30\n\u003c/pre\u003e\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Hint","value":{"format":"MD","content":"以下以 C/C++ 语言为例提供该问题的示例代码,供做题者参考。\n\n```c\n// Language: C\n\n#include\u003cstdio.h\u003e\n\nint main() {\n int T;\n scanf(\"%d\", \u0026T);\n while (T--) {\n int a, b;\n scanf(\"%d%d\", \u0026a, \u0026b);\n printf(\"%d\\n\", a + b);\n }\n return 0;\n}\n```\n\n```c\n// Language: C++\n\n#include\u003ciostream\u003e\nusing namespace std;\n\nint main() {\n int T;\n cin \u003e\u003e T;\n while (T--) {\n int a, b;\n cin \u003e\u003e a \u003e\u003e b;\n cout \u003c\u003c a + b \u003c\u003c endl;\n }\n return 0;\n}\n```"}}]}