#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { int t,c,i,n; while(cin>>t) {...
Read More
Home / Archive for December 2015
UVA-382 Perfection
#include <iostream> #include <bits/stdc++.h> using namespace std; int main() { int n,i,sum; printf("PERFECTI...
Read More
UVA-10394 Twin Prime
#include <bits/stdc++.h> using namespace std; #define n 20000005 long long int twin[n]; bool a[n]; void sieve() { long long int i,...
Read More
UVA-623 500!
import java.util.*; import java.math.BigInteger; public class Main { public static void main(String[] args) { // TODO code appli...
Read More
UVA-11417 GCD
#include <iostream> #include <bits/stdc++.h> using namespace std; int gcd(int a,int b) { int x,y,r; x=a; y=b; wh...
Read More
UVA- 374 (Big Mod) Recursive Modular Exponentiation
At first check it : Big Mod Tutorial in Bangla #include <iostream> #include <bits/stdc++.h> using namespace std; ...
Read More
Subscribe to:
Posts
(
Atom
)