結果

問題 No.2925 2-Letter Shiritori
ユーザー Andrew8128
提出日時 2024-10-12 15:08:11
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 63 ms / 2,000 ms
コード長 587 bytes
コンパイル時間 3,017 ms
コンパイル使用メモリ 244,228 KB
実行使用メモリ 25,196 KB
平均クエリ数 26.00
最終ジャッジ日時 2024-10-12 15:08:36
合計ジャッジ時間 4,805 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i, x, y) for (auto i = (x); i < (y); i++)
#define RREP(i, x, y) for (auto i = (y) - 1; (x) <= i; i--)
#define ALL(x) (x).begin(), (x).end()
#pragma GCC optimize("O3")
int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  char a;
  cin >> a;
  cout << "? " << a << a << endl;
  while(1){
    char c;
    string T;
    cin >> c >> T;
    if(c == '!')break;
    cout << "? " << T[1] << a << endl;
  }
  return 0;
}
/*
  File : ~/yukicoder/midoriika_3rd/G.cpp
  Date : 2024/10/12
  Time : 15:03:49
*/
0