Zoj
Akai_Shuuichi
不积跬步无以至千里
展开
-
Zoj1004
#include #include #include using namespace std; string s1; string s2; string s; string action; stack stak; int pos1, cur; void push() { stak.push(s1[pos1]); pos1++; action += "i"; } void pop() { c原创 2014-08-30 17:28:13 · 485 阅读 · 0 评论 -
Zoj1334
#include #include #include using namespace std; const int maxn = 50; char s1[maxn], s2[maxn]; void convert(char *in, int base1, int base2, char *out) { out[0] = '\0'; int num = 0; for (int i = 0; i原创 2014-09-02 14:17:45 · 564 阅读 · 0 评论 -
Zoj1292
#include #include #include using namespace std; class BigInt { public: string s; friend istream& operator>>(istream& in, BigInt& item); friend ostream& operator<<(ostream& out, BigInt& item); BigI原创 2014-09-02 12:43:57 · 460 阅读 · 0 评论 -
Zoj1037
这道题初看,会觉得有点难度,但是原创 2014-09-01 21:39:20 · 403 阅读 · 0 评论 -
Zoj1205
#include #include #include using namespace std; char my2char(int num) { if(num<10) return num+'0'; else return num-10+'a'; } int my2int(char ch) { if(ch>='0' && ch<='9')原创 2014-09-01 23:08:31 · 428 阅读 · 0 评论 -
Zoj1201
#include #include #include using namespace std; const int maxn=50+5; int n; int P[maxn]; int I[maxn]; void P2I() { memset(I,0,sizeof(I)); for(int i=0;i<n;i++) for(int j=i+1;j<n;j++)原创 2014-09-01 22:12:11 · 500 阅读 · 0 评论 -
Zoj1067
水题,就直接上代码了:#include using namespace std; struct Color { int r,g,b; }c[16]; int cmp(Color c1,Color c2) { return (c1.r-c2.r)*(c1.r-c2.r)+(c1.g-c2.g)*(c1.g-c2.g)+(c1.b-c2.b)*(c1.b-c2.b); } int ma原创 2014-09-01 21:39:17 · 903 阅读 · 0 评论 -
Zoj1012
对于这道题,要认真分析任务完成的顺序,至少原创 2014-09-01 13:15:43 · 619 阅读 · 0 评论 -
Zoj1115(易错)
这道题,要注意没有限制输入数据的长度,所以输入的原创 2014-09-01 21:42:38 · 509 阅读 · 0 评论 -
Zoj1047
非常常见的DFs。搜索问题,主要是原创 2014-09-03 22:23:27 · 738 阅读 · 0 评论