Codeforces 59A Word Solution
Solve in C: #include<stdio.h> #include<string.h> int main() { char s[101]; int i,j,len,lower=0,upper=0; whi...
Solve in C: #include<stdio.h> #include<string.h> int main() { char s[101]; int i,j,len,lower=0,upper=0; whi...
Solve in C: #include<stdio.h> int main() { char s[101]; int len,i,a1=0,b1=0,c1=0,d1=0,e1=0,f1=0,g1=0,h1=0,i1=0,j1=0,k1=...
Solve in C: #include<stdio.h> #include<string.h> int main() { char s[101],t[101]; int r; while(scanf("...
Solve in C: #include<stdio.h> #include<string.h> int main() { char s[1001],c[1001]; int i,n,len; scanf("...
Solve in C: #include<stdio.h> #include<string.h> int main() { char s[1001]; int i,len,p,n,j; scanf("%d...
Solve in C: #include<stdio.h> int main() { long long int n,k,a,r; while(scanf("%lld%lld",&n,&k)!=EOF)...
Solve in C: #include<stdio.h> int main() { printf(" 6 8\n"); printf(" 35 49...
Solve in C: #include<stdio.h> int main() { int k,l,m,n,d,count=0,i; while(scanf("%d%d%d%d%d",&k,&l,&...
Solution in C: #include<stdio.h> #include<string.h> int main() { int words=0,i,len,flag=0; char str[10...
https://uva.onlinejudge.org/external/127/12708.pdf Solve in C: #include<stdio.h> int main() { long long int n,r,a,i; w...
Solve in C: #include <bits/stdc++.h> using namespace std; int main() { long long int i,a,r,n,m; scanf("%d",&...
Solve in C: #include<stdio.h> long long int hcf(long long int m1,long long int m2) { if (m2 != 0) return hcf(m2, m1...
Solve in C++: #include <bits/stdc++.h> using namespace std; int main() { long long int i,p,m,n,count=0,d,y1,y2; scanf(...
Solve in C: #include<stdio.h> #include<math.h> int main() { int n,i,x,y,z,sx=0,sy=0,sz=0; while(scanf("...
Solve in C: #include<stdio.h> int main() { long long int n,r; scanf("%lld",&n); if(n%2==0) { ...
Solve in C++: #include<bits/stdc++.h> using namespace std; int main(){ int n,a,b,c; int m[6]; while(scanf("%d%d%d",...
Solve in C: #include<stdio.h> int main() { int a; while(scanf("%d",&a)!=EOF) { if(a==2) ...
Solve in C: #include<stdio.h> #include<string.h> #include<math.h> int main() { char s[105]; int i,len,j,n,...
Solve in C: #include<stdio.h> #include<math.h> long long int big_mod(long long int base,long long int power,long long int m...
Hints: Solve in c: #include<stdio.h> #include<math.h> int main() { double r,n,a; while(scanf("%lf%lf&q...
Solve in C: #include<stdio.h> int main () { int n,lcm,i,gcm; scanf("%d",&n); { for(i=1; i&l...
Hints: Suppose that the coordinates of the three points are ( a 1 , a 2 ) , ( a 1 , a 2 ) , ( b 1 , b 2 ) , ( b 1 , b 2 ) , and ( c 1...
Problem Link https://codeforces.com/contest/2009/problem/C S olution in C++: /// Author : AH_Tonmoy #include < bits / stdc ++. h &g...