UVA 1225 Digit Counting Add Comment Edit #include <bits/stdc++.h> #include <string> using namespace std; int main() { int i,j,k,l,m,n,t,c,a[10005]; strin... Read More
UVA 13275 Leap Birthdays Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int i,j,k,l,m,n,c,d,y1,y2; cin>>n; ... Read More
UVA 750 8 Queens Chess Problem 2 Comments Edit #include <bits/stdc++.h> using namespace std; int n,a,b,h; void solution(int board[32][32]) { int p,q; printf("%2... Read More
UVA 10474 Where is the Marble? Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int n,q,i,j,k,l,m,t=0; //freopen("uvain.txt... Read More
UVA 357 Let Me Count The Ways Add Comment Edit #include<bits/stdc++.h> using namespace std; #define ll long long int ll coinchange(ll s[], ll m, ll n ) { ll table[n+1],i,... Read More
UVA 674 Coin Change Add Comment Edit #include<bits/stdc++.h> using namespace std; int coinchange(int S[], int m, int n ) { int table[n+1]; memset(table, 0, ... Read More
UVA 10179 Irreducible Basic Fractions Add Comment Edit Hints : Apply Euler Totient Function Rule f(n) = n*[(1-(1/p1))*(1-(1/p2))*..........(1-(1/pk))] #include <bits/stdc++.h> ... Read More
UVA 10226 Hardwood Species Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int i,j,k,l,m,n; double v; map<strin... Read More
UVA 10295 Hay Points Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int i,j,k,l,m,n,sum,f; string sk,s; ch... Read More
UVA 10815 Andy's First Dictionary Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { set<string>st; set<string>::iterator it=st... Read More
UVA 11530 SMS Typing Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int i,k,l,m,n,j,t,v,sum; //char s[1000000];... Read More
UVA 11185 Ternary Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int i,j,k,l,n,m,a[10000]; //freopen("1118... Read More
UVA 12531 - Hours and Minutes Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int i,j,k,l,m,n,a,hour,h; bool b[500]; m... Read More
UVA 11219 How old are you? Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int i,j,k,l,n,m1,t,y1,d1,m2,y2,d2,y,d,m; ch... Read More
UVA 12770 PalinaGram Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { char ch; vector<char>v; string s; int a[500]... Read More
UVA 12439 February 29 Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int d1,d2,y1,y2,i,j,k,l,n,t,x,y,z,u,w; strin... Read More
UVA 1727 Counting Weekend Days Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int s,t,i,j,k; string m,day; //freopen... Read More
UVA 13148 A Giveaway Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int a[21]={1,64,729,4096,15625,46656,117649, ... Read More
UVA 10107 What is the Median? Add Comment Edit #include <bits/stdc++.h> using namespace std; int main() { long long int n,i,j,k,mid,m,a[100005],x,t; vector<l... Read More