結果
問題 | No.2256 Step by Step |
ユーザー | noya2 |
提出日時 | 2023-01-27 02:35:57 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 1,927 bytes |
コンパイル時間 | 2,136 ms |
コンパイル使用メモリ | 206,576 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-27 16:10:56 |
合計ジャッジ時間 | 7,301 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | RE | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
testcase_14 | WA | - |
testcase_15 | WA | - |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | WA | - |
testcase_20 | WA | - |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
testcase_25 | WA | - |
testcase_26 | WA | - |
testcase_27 | WA | - |
testcase_28 | WA | - |
testcase_29 | WA | - |
testcase_30 | WA | - |
testcase_31 | WA | - |
ソースコード
// Wrong Answer // N = 1 : more than 1 types of blocks deleted // N = 2 : output 0 // N = 3 : more than 3 blocks deleted // N = 4 : S has non-digit char // N = 5 : S length is shorter than N // N = 6 : S length is longer than N // N = 7 : output less than 6 strings // N = 8 : 0 blocks deleted #include<bits/stdc++.h> using namespace std; vector<string> ans1 = { "1", "1", "1", "0", "0", "0" }; vector<string> ans3 = { "012", "342", "342", "222", "141", "300" }; vector<string> ans4 = { "4551", "3662", "6777", "3AA5", "3442", "A112" }; vector<string> ans5 = { "4551", "3662", "6777", "3005", "3442", "0112" }; vector<string> ans6 = { "4551999", "366299", "677799", "300599", "344299", "011299" }; vector<string> ans7 = { "4551999", "3662999", "6777999", "3005999", "3442999" }; vector<string> ans8 = { "01234567", "12345678", "23456789", "34567890", "45678901", "56789012" }; int main(){ int n; cin >> n; if (n == 1){ for (int i = 0; i < 6; i++){ cout << ans1[i] << endl; // WA } return 0; } if (n == 2){ cout << 0 << endl; // WA return 0; } if (n == 3){ for (int i = 0; i < 6; i++){ cout << ans3[i] << endl; // WA } return 0; } if (n == 4){ for (int i = 0; i < 6; i++){ cout << ans4[i] << endl; // WA } return 0; } if (n == 5){ for (int i = 0; i < 6; i++){ cout << ans5[i] << endl; // WA } return 0; } if (n == 6){ for (int i = 0; i < 6; i++){ cout << ans6[i] << endl; // WA } return 0; } if (n == 7){ for (int i = 0; i < 6; i++){ cout << ans7[i] << endl; // WA } return 0; } if (n == 8){ for (int i = 0; i < 6; i++){ cout << ans8[i] << endl; // WA } return 0; } }