結果
問題 | No.2925 2-Letter Shiritori |
ユーザー |
![]() |
提出日時 | 2024-10-14 19:43:25 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 57 ms / 2,000 ms |
コード長 | 556 bytes |
コンパイル時間 | 2,860 ms |
コンパイル使用メモリ | 244,052 KB |
実行使用メモリ | 25,452 KB |
平均クエリ数 | 26.00 |
最終ジャッジ日時 | 2024-10-14 19:43:30 |
合計ジャッジ時間 | 4,491 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 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;cin>>s;//cout<<s<<endl;if(s=="WIN"){break;}cout<<"? "<<s[1]<<c<<endl;}}