結果
問題 | No.2925 2-Letter Shiritori |
ユーザー | loop0919 |
提出日時 | 2024-06-13 03:36:29 |
言語 | C++23(gcc13) (gcc 13.2.0 + boost 1.83.0) |
結果 |
AC
|
実行時間 | 60 ms / 2,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 7,145 ms |
コンパイル使用メモリ | 271,204 KB |
実行使用メモリ | 25,196 KB |
平均クエリ数 | 26.00 |
最終ジャッジ日時 | 2024-10-12 14:00:41 |
合計ジャッジ時間 | 8,840 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 60 ms
24,556 KB |
testcase_01 | AC | 56 ms
24,812 KB |
testcase_02 | AC | 58 ms
24,812 KB |
testcase_03 | AC | 56 ms
24,812 KB |
testcase_04 | AC | 57 ms
25,196 KB |
testcase_05 | AC | 58 ms
25,184 KB |
testcase_06 | AC | 58 ms
25,052 KB |
testcase_07 | AC | 57 ms
25,196 KB |
testcase_08 | AC | 58 ms
25,196 KB |
testcase_09 | AC | 58 ms
24,812 KB |
testcase_10 | AC | 58 ms
24,812 KB |
testcase_11 | AC | 55 ms
24,812 KB |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ char alpha; cin >> alpha; char pre = alpha; while (true) { cout << "? " << pre << alpha << endl; char cmd; string T; cin >> cmd >> T; if (cmd == '!') { break; } else { pre = T[1]; } } return 0; }