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