{"trustable":false,"sections":[{"title":"","value":{"format":"HTML","content":"\u003chtml\u003e\n \u003chead\u003e\u003c/head\u003e\n \u003cbody\u003e\n \u003cdiv class\u003d\"challenge_problem_statement\"\u003e\n \u003cdiv class\u003d\"msB challenge_problem_statement_body\"\u003e\n \u003cdiv class\u003d\"hackdown-content\"\u003e\n \u003cstyle id\u003d\"MathJax_SVG_styles\"\u003e.MathJax_SVG_Display {text-align: center; margin: 1em 0em; position: relative; display: block!important; text-indent: 0; max-width: none; max-height: none; min-width: 0; min-height: 0; width: 100%}\n.MathJax_SVG .MJX-monospace {font-family: monospace}\n.MathJax_SVG .MJX-sans-serif {font-family: sans-serif}\n.MathJax_SVG {display: inline; font-style: normal; font-weight: normal; line-height: normal; font-size: 100%; font-size-adjust: none; text-indent: 0; text-align: left; text-transform: none; letter-spacing: normal; word-spacing: normal; word-wrap: normal; white-space: nowrap; float: none; direction: ltr; max-width: none; max-height: none; min-width: 0; min-height: 0; border: 0; padding: 0; margin: 0}\n.MathJax_SVG * {transition: none; -webkit-transition: none; -moz-transition: none; -ms-transition: none; -o-transition: none}\n.mjx-svg-href {fill: blue; stroke: blue}\n\u003c/style\u003e\n \u003csvg style\u003d\"display: none;\"\u003e\n \u003cdefs id\u003d\"MathJax_SVG_glyphs\"\u003e\u003c/defs\u003e\n \u003c/svg\u003e\n \u003cp\u003eThere are N people In the room.If any two persons shake hand exactly once, Can you tell the total count of handshakes?\u003c/p\u003e \n \u003cp\u003e\u003cstrong\u003eInput Format\u003c/strong\u003e \u003cbr\u003e The first line contains number of test cases T, T lines follow. \u003cbr\u003e Each line then contains an integer N, the total number people in the room \u003c/p\u003e \n \u003cp\u003e\u003cstrong\u003eOutput Format\u003c/strong\u003e \u003c/p\u003e \n \u003cp\u003ePrint the number of handshakes for each test-case in a new line. \u003c/p\u003e \n \u003cp\u003e\u003cstrong\u003eConstraints\u003c/strong\u003e \u003c/p\u003e \n \u003cp\u003e1 \u0026lt;\u003d T \u0026lt;\u003d 1000 \u003cbr\u003e 0 \u0026lt; N \u0026lt; 10\u003csup\u003e6\u003c/sup\u003e \u003c/p\u003e \n \u003cp\u003e\u003cstrong\u003eSample Input\u003c/strong\u003e\u003c/p\u003e \n \u003cpre\u003e\u003ccode\u003e2\n1\n2\n\u003c/code\u003e\u003c/pre\u003e \n \u003cp\u003e\u003cstrong\u003eSample Output\u003c/strong\u003e \u003c/p\u003e \n \u003cpre\u003e\u003ccode\u003e0\n1\n\u003c/code\u003e\u003c/pre\u003e \n \n \u003c/div\u003e\n \u003c/div\u003e\n \u003c/div\u003e\n \u003c/body\u003e\n\u003c/html\u003e"}}]}