摘要: #include #include using namespace std;int main(){ int strwide; cin >> strwide; pair rotor[3][1000]; pair rotor_instead[3][1000]; string input; int t = 0; while( t > input; if ( input.size() == strwide ) { char start_1 = 'a'; char start_els... 阅读全文
posted @ 2013-07-08 20:31 2011winseu 阅读(294) 评论(0) 推荐(0) 编辑
摘要: #include #include #include using namespace std;int main(){ string array[30][2]; string a,b; int t=0; while( cin >> a ) { if ( a == "0" ) { break; } else { cin >> b; } array[t][0] = a; array[t][1] = b; t++; } for ( int i = 0; i < t; i++ ) { const char *p = array[i][0].c_str() 阅读全文
posted @ 2013-07-08 20:15 2011winseu 阅读(361) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;int main(){ int **array = new int *[100]; for ( int i = 0; i > x >> y ) { array[t][0] = x; array[t][1] = y; t++; } for ( int i = 0; i 100 && array[i][1] > 100 && t1 == 0 && t2 == 0 ) { win = array[i][0]; if ( win 100 && array[i 阅读全文
posted @ 2013-07-08 20:11 2011winseu 阅读(265) 评论(0) 推荐(0) 编辑