結果
問題 | No.2925 2-Letter Shiritori |
ユーザー |
![]() |
提出日時 | 2024-10-20 00:12:41 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 466 bytes |
コンパイル時間 | 3,155 ms |
コンパイル使用メモリ | 245,712 KB |
実行使用メモリ | 25,196 KB |
平均クエリ数 | 26.00 |
最終ジャッジ日時 | 2024-10-20 00:12:47 |
合計ジャッジ時間 | 4,998 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h>using namespace std;#ifdef LOCAL#include "settings/debug.cpp"#else#define Debug(...) void(0)#endif#define rep(i, n) for (int i = 0; i < (n); ++i)using ll = long long;using ull = unsigned long long;int main() {char c;cin >> c;string prev = "";rep(i, 26) {if (prev == "") prev += c;cout << "? " << prev.back() << c << endl;char res;cin >> res >> prev;if (res == '!') break;}return 0;}