Md. Arifur Rahman (Sazal)
ক্রমে ক্রমে হ্রাস পাচ্ছে বিবেক, ঘুমিয়ে পড়ছে মানবতা……
Pages
Home
ACM Algorithm
Math
E- Balagurusamy
Basic Program
Assembly Language
Gallery
My Portfolio
Thursday, 19 May 2011
uva 11461-Sequence Number
#include<stdio.h>
#include<math.h>
int main()
{
int a,b,i;
//freopen("in.txt","r",stdin);
while(scanf("%d%d",&a,&b) && (a||b))
{
int counter=0;
for(i=1;pow(i,2)<=b;i++)
counter++;
for(i=1;pow(i,2)<a;i++)
counter--;
printf("%d\n",counter);
}
return(0);
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment