結果
問題 | No.2925 2-Letter Shiritori |
ユーザー |
![]() |
提出日時 | 2024-10-12 15:07:45 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 64 ms / 2,000 ms |
コード長 | 318 bytes |
コンパイル時間 | 798 ms |
コンパイル使用メモリ | 72,096 KB |
最終ジャッジ日時 | 2025-02-24 17:53:18 |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
#include <iostream> #include <vector> using Int = long long; int main() { char A; std::cin >> A; std::cout << "? " << A << A << std::endl; for (int i = 0; i < 26; ++i) { std::string S, T; std::cin >> S >> T; if (S == "!" && T == "WIN") { break; } std::cout << "? " << T.back() << A << std::endl; } }