UVA 12791
Solve in C: #include<stdio.h> int main(){ int x,y,d,r; while(scanf("%d%d",&x,&y)!=EOF) { d=y-x; r=y...
Solve in C: #include<stdio.h> int main(){ int x,y,d,r; while(scanf("%d%d",&x,&y)!=EOF) { d=y-x; r=y...
Solve in C: #include<stdio.h> int main(){ int i=1,n,a; while(scanf("%d",&n)!=EOF) { if(n==0) break; a=...
Solve in C: #include<stdio.h> int main(){ printf("The 1500'th ugly number is 859963392.\n"); }
Solve in C: #include<stdio.h> int main() { char c; while(scanf("%c",&c)==1) { if(c=='1...
Solve in C: #include<stdio.h> int main() { float d,s,t; int m,h; char c; while(scanf("%d%c%d",&h...
Solve in C: #include<stdio.h> #include<string.h> #include<math.h> int main() { int i,n; char s[1000]; ...
Solve in C: #include<stdio.h> int main() { long int max,n,a,i,j,a1; scanf("%ld",&a); for(i=1...
Question: Proper Leap Years Limits: 1s, 512 MB Byang’s friend was asked to author a programming problem where the challenge was to ...
Question: Leap Years Limits: 1s, 512 MB In the Gregorian calendar, certain years have 366 days instead of 365. In such years, the m...
Question: Making Friends Limits: 1s, 512 MB Byang is going to join a new school. His new class has N students. Each of the stud...
Question: Clock Math Limits: 1s, 512 MB Given a time (hours as H and minutes as M ), determine the smaller angle between the t...
Question: Math and Watermelons Limits: 1s, 512 MB Your friend has M watermelons. He doesn’t want to share them with anyone, but l...
Question: Running Average Again Limits: 1s, 512 MB Given N numbers, read each one, calculate the running average and print it. Fo...
Toph easy problem(Running Average) Question: Running Average Limits: 1s, 512 MB Given N numbers, read each one, calculate the...
Question: Mixed Fractions Limits: 1s, 512 MB Given an improper fraction (as the numerator N and the denominator D ), determine a...
Problem Link https://codeforces.com/contest/2009/problem/C S olution in C++: /// Author : AH_Tonmoy #include < bits / stdc ++. h &g...