摘要:/* ID: m1590291 TASK: milk2 LANG: C++ */ #include <iostream> #include <algorithm> #include <fstream> #define MAX 5005 using namespace std; struct Node
阅读全文
摘要:/* ID: m1590291 TASK: dualpal LANG: C++ */ #include #include using namespace std; ifstream fin ("dualpal.in"); ofstream fout ("dualpal.out"); const char a[] = {'0', '1', '2', '3', '4', '5', '6', '7'...
阅读全文
摘要:/* ID: m1590291 PROG: ride LANG: C++ */ #include #include using namespace std; int main() { string s1,s2; int sum1=1,sum2=1,i; ifstream fin ("ride.in"); ofstream fout ("ride.out"); ...
阅读全文
摘要:/* ID: m1590291 PROG: gift1 LANG: C++ */ #include #include using namespace std; int main() { ifstream fin ("gift1.in.txt"); ofstream fout ("gift1.out.txt"); int s,i,j,k,money=0,ou...
阅读全文
摘要:#include #include #include #include int isleap(int y) { return y%4==0 && (y%100 != 0 || y%400 == 0); } int mtab[] = { 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }; /* return length of m...
阅读全文
摘要:/* ID: m1590291 PROG: beads LANG: C++ */ #include #include using namespace std; int main() { int num,max=0,n,i,j,k; char *p,symbol1,symbol2; ifstream fin("beads.in"); ofstream fout("beads.out...
阅读全文