結果
問題 | No.2925 2-Letter Shiritori |
ユーザー |
![]() |
提出日時 | 2024-10-14 19:41:11 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 545 bytes |
コンパイル時間 | 2,901 ms |
コンパイル使用メモリ | 245,100 KB |
実行使用メモリ | 25,452 KB |
平均クエリ数 | 6.00 |
最終ジャッジ日時 | 2024-10-14 19:41:17 |
合計ジャッジ時間 | 4,668 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 10 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define rep(i, n) for (int i = 0; i < (int)(n); i++)typedef vector<int> VI;typedef vector<VI> VVI;typedef vector<long long> VL;typedef vector<VL> VVL;typedef long long LL;#define all(a) (a).begin(), (a).end()#define Yes(n) cout << ((n) ? "Yes" : "No" ) << endl#define ALL(a) (a).begin(),(a).end()#define pb push_backint main() {char c;cin>>c;string s;cout<<"? "<<c<<c<<endl;while(1){cin>>s;cout<<s<<endl;if(s=="!"){break;}cout<<"? "<<s[1]<<c<<endl;}}