結果
問題 | No.624 Santa Claus and The Last Dungeon |
ユーザー | e869120 |
提出日時 | 2017-12-13 20:46:32 |
言語 | C++14 (gcc 13.2.0 + boost 1.83.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 1,176 bytes |
コンパイル時間 | 682 ms |
コンパイル使用メモリ | 71,700 KB |
実行使用メモリ | 24,516 KB |
平均クエリ数 | 606.69 |
最終ジャッジ日時 | 2023-09-23 15:12:20 |
合計ジャッジ時間 | 10,443 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 66 ms
23,964 KB |
testcase_01 | AC | 60 ms
23,760 KB |
testcase_02 | AC | 59 ms
23,964 KB |
testcase_03 | AC | 61 ms
23,688 KB |
testcase_04 | AC | 62 ms
23,568 KB |
testcase_05 | AC | 61 ms
23,952 KB |
testcase_06 | AC | 59 ms
23,580 KB |
testcase_07 | AC | 66 ms
23,520 KB |
testcase_08 | AC | 58 ms
23,568 KB |
testcase_09 | AC | 58 ms
23,448 KB |
testcase_10 | AC | 58 ms
23,592 KB |
testcase_11 | AC | 59 ms
23,628 KB |
testcase_12 | AC | 58 ms
23,352 KB |
testcase_13 | AC | 60 ms
23,880 KB |
testcase_14 | AC | 61 ms
23,688 KB |
testcase_15 | AC | 61 ms
23,340 KB |
testcase_16 | AC | 59 ms
23,340 KB |
testcase_17 | AC | 60 ms
24,060 KB |
testcase_18 | RE | - |
testcase_19 | RE | - |
testcase_20 | RE | - |
testcase_21 | RE | - |
testcase_22 | RE | - |
testcase_23 | RE | - |
testcase_24 | RE | - |
testcase_25 | RE | - |
testcase_26 | RE | - |
testcase_27 | RE | - |
testcase_28 | RE | - |
testcase_29 | RE | - |
testcase_30 | RE | - |
testcase_31 | RE | - |
testcase_32 | RE | - |
testcase_33 | RE | - |
testcase_34 | RE | - |
testcase_35 | RE | - |
ソースコード
#include <iostream> #include <ctime> #include <string> #include <algorithm> using namespace std; int Q, a[109], b[109]; int main() { srand((unsigned)time(NULL)); cin >> Q; while (true) { for (int i = 0; i < 100; i++) { b[i] = rand() % 100; } for (int i = 0; i < 100; i++) { if (i)cout << " "; string V = to_string(b[i]); if (V.size() == 1)V = "0" + V; cout << V; } cout << endl; int V1, V2, V3; cin >> V1 >> V2 >> V3; if (V3 == 0)break; } for (int i = 0; i < 100; i++) { int L = 0, R = 100, M, minx = 10000; for (int j = 0; j < 7; j++) { M = (L + R) / 2; for (int k = 0; k <= M; k++) { if (k)cout << " "; string V = to_string(i); if (V.size() == 1)V = "0" + V; cout << V; } for (int k = M + 1; k < 100; k++) { if (k)cout << " "; string V = to_string(b[k]); if (V.size() == 1)V = "0" + V; cout << V; } cout << endl; int V1, V2, V3; cin >> V1 >> V2 >> V3; if (V3 == 1) { minx = min(minx, M); R = M; } else { L = M; } } a[minx] = i; } for (int i = 0; i < 100; i++) { if (i)cout << " "; string V = to_string(a[i]); if (V.size() == 1)V = "0" + V; cout << V; } cout << endl; return 0; }