{"trustable":false,"prependHtml":"\u003cstyle type\u003d\u0027text/css\u0027\u003e\n .input, .output {\n border: 1px solid #888888;\n }\n .output {\n margin-bottom: 1em;\n position: relative;\n top: -1px;\n }\n .output pre, .input pre {\n background-color: #EFEFEF;\n line-height: 1.25em;\n margin: 0;\n padding: 0.25em;\n }\n \u003c/style\u003e\n \u003clink rel\u003d\"stylesheet\" href\u003d\"//codeforces.org/s/96598/css/problem-statement.css\" type\u003d\"text/css\" /\u003e\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 type\u003d\"text/javascript\" async src\u003d\"https://mathjax.codeforces.org/MathJax.js?config\u003dTeX-AMS_HTML-full\"\u003e\u003c/script\u003e","sections":[{"title":"","value":{"format":"HTML","content":"真实签到题,这道题做不对算我输→_→,不过大家也要稍微优化一下的\u003cbr\u003e\u003cp\u003e\n一只青蛙在跳跃,第一次向前跳a步,\n第二次向后跳b步,青蛙跳了k次,求青蛙当前坐标。\n"}},{"title":"Input","value":{"format":"HTML","content":"第一行输入一个整数t,表示有t只青蛙(1≤t≤1000)\u003cp\u003e\n之后有t行输入,每行有a,b ,k三个数(1≤a,b,k≤1e9)"}},{"title":"Output","value":{"format":"HTML","content":"\u003cp\u003e对于每组数据,输出一个整数,代表青蛙当前坐标\u003c/p\u003e"}},{"title":"Sample Input","value":{"format":"HTML","content":"\n \u003cpre\u003e6\n5 2 3\n100 1 4\n1 10 5\n1000000000 1 6\n1 1 1000000000\n1 1 999999999\n\u003c/pre\u003e\n\n "}},{"title":"Sample Output","value":{"format":"HTML","content":"\u003cpre\u003e8\n198\n-17\n2999999997\n0\n1\n\u003c/pre\u003e\n"}},{"title":"Hint","value":{"format":"HTML","content":"这道题长整数类型的输入输出请使用%lld。编译器推荐选择GNU G++11 5.1.0"}}]}