All In One
একের ভিতর সব
Thursday, June 23, 2016
SOLUTION OF URI 1150
// 1150 (Mahmud_Jamil) BRUR
// Exceeding Z
#include <stdio.h>
int main()
{
int a,b,c=0,x,z;
scanf("%d", &x);
do{
scanf("%d", &z);
}
while(x>=z);
for(a=x,b=0; b<z; a++)
{
b+=a;
c++;
}
printf("%d\n", c);
return 0;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment