原创 Count on Cantor
// http://www.spoj.com/problems/CANTON/ #include <iostream> using namespace std; int main(int argc, char* argv[]) { in
原创 Bytelandian gold coins
//http://www.spoj.com/problems/COINS/ #include <iostream> #include <cstdlib> using namespace std; #define MEMOSIZE 100
原创 Ambiguous Permutations
//http://www.spoj.com/problems/PERMUT2/ #include <iostream> using namespace std; int main(int argc, char* argv[]) {
原创 Candy I
// http://www.spoj.com/problems/CANDY/ #include <iostream> using namespace std; int main(int argc, char* argv[]) {
原创 The last digit
// http://www.spoj.com/problems/LASTDIG/ #include <iostream> using namespace std; int dat[10][4]={{0,0,0,0}, {1,1
原创 To and Fro
// http://www.spoj.com/problems/TOANDFRO/ #include <iostream> #include <string> #include <cstring> using std::cin; usin
原创 Adding Reversed Numbers
// http://www.spoj.com/problems/ADDREV/ #include <string> #include <iostream> #include <sstream> #include <algorithm>
原创 Prime Generator
// http://www.spoj.com/problems/PRIME1/ #include <cstdio> #include <cstdlib> #include <cstring> #include <iostream> u
原创 SPOJ ARMY
// http://www.spoj.com/problems/ARMY/ #include <iostream> #include <queue> #include <vector> #include <functional> usi
原创 Hangover
// http://www.spoj.com/problems/HANGOVER/ #include <iostream> using namespace std; int main(int argc, char* argv[]) {
原创 Anti-Blot System
// http://www.spoj.com/problems/ABSYS/ #include <iostream> #include <string> #include <sstream> #include <vector> #incl
原创 Fashion Shows
// http://www.spoj.com/problems/FASHION/ #include <iostream> #include <cstdlib> using namespace std; int compare_ints
原创 Triple Fat Ladies
// http://www.spoj.com/problems/EIGHTS/ #include <iostream> using namespace std; int main(int argc, char* argv[]) {
原创 Candy III
// http://www.spoj.com/problems/CANDY3/ #include <iostream> using namespace std; int main(int argc, char* argv[]) {
原创 What’s Next
// http://www.spoj.com/problems/ACPC10A/ #include <iostream> using namespace std; int main(int argc, char* argv[]) {