SOLUTION OF URI 1150 URI SOLUTIONS No comments // 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;} Share This: Facebook Twitter Google+ Stumble Digg Email ThisBlogThis!Share to XShare to Facebook
0 comments:
Post a Comment