| ||||||||||
| 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 | |||||||||
OMS 秒杀.....program qi(input,output);
var
a,b,c,d,i,j,k,ans:longint;
begin
readln(a);
for i:=1 to a do
begin
ans:=0;
readln(b);
for j:=1 to b do
begin
if sqrt(j)/trunc(sqrt(j))=1 then inc(ans);
end;
writeln(ans);
end;
end.
PASCAL还是好使.....
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator