题目:http://codeforces.com/problemset/problem/622/A
代码:
#include<stdio.h>
int main()
{
long long n,i;
scanf("%I64d",&n);
i=0;
while(n>i) n=n-i,i++;
printf("%I64d",n);
}
题目:http://codeforces.com/problemset/problem/622/A
代码:
#include<stdio.h>
int main()
{
long long n,i;
scanf("%I64d",&n);
i=0;
while(n>i) n=n-i,i++;
printf("%I64d",n);
}