結果
問題 | No.2925 2-Letter Shiritori |
ユーザー |
![]() |
提出日時 | 2024-10-12 16:14:45 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 487 bytes |
コンパイル時間 | 2,509 ms |
コンパイル使用メモリ | 245,016 KB |
実行使用メモリ | 25,452 KB |
平均クエリ数 | 26.00 |
最終ジャッジ日時 | 2024-10-12 16:14:56 |
合計ジャッジ時間 | 4,023 ms |
ジャッジサーバーID (参考情報) |
judge / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 10 |
ソースコード
#include <bits/stdc++.h> #define rep(i, n) for(long long i = 0; i < n; i++) #define ALL(v) (v).begin(), (v).end() #define rALL(v) (v).rbegin(), (v).rend() using namespace std; using lint = long long; using ld = long double; int main() { char c; cin >> c; cout << "? " << c << c << endl; while (true) { string s, t; cin >> s >> t; if (s == "!") { return 0; } reverse(ALL(t)); cout << "? " << t << endl; } }