Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

同一个代码,GCC过不了。换为C就过了,水题mark

Posted by isjune at 2015-06-03 16:32:47 on Problem 1218
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator