| ||||||||||
| 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 | |||||||||
同一个代码,GCC过不了。换为C就过了,水题mark#include<stdio.h>
int main()
{
int numCase=0;
scanf("%d",&numCase);
while(numCase--)
{
int data=0;
int count=0;
int i=0;
scanf("%d",&data);
while(i*i<=data)
{
i++;
}
printf("%d\n",i-1);
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator