| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
原谅我太天真,谁能告诉我哪里错了#include <stdio.h>
#include <string.h>
int main()
{
int t,n,i,j;
while(~scanf("%d",&t))
{
while(t--)
{
scanf("%d",&n);
for(i=1;n>i;i++)
n-=i;
printf("%d\n",n);
}
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator