随笔分类 - ACM/ICPC
摘要:#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...
阅读全文
摘要:#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()
阅读全文
摘要:#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
阅读全文
摘要:#include #include using namespace std;int main(){ int testcase_num; cin >> testcase_num; vector *result = new vector[testcase_num]; for ( int i = 0; i > number_transfered; vector transfered; int count = 0; int input; while( count > input ) { transfered.push_back(input); count++; } vector
阅读全文

浙公网安备 33010602011771号