結果

問題 No.2925 2-Letter Shiritori
ユーザー 👑 loop0919
提出日時 2024-06-24 13:35:38
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 400 bytes
コンパイル時間 3,297 ms
コンパイル使用メモリ 271,792 KB
実行使用メモリ 25,836 KB
平均クエリ数 1.00
最終ジャッジ日時 2024-10-12 14:00:46
合計ジャッジ時間 4,900 ms
ジャッジサーバーID
(参考情報)
judge3 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

int main(){
    char alpha;
    cin >> alpha;
    
    char pre = alpha;
    
    while (true) {
        cout << pre << alpha << endl;
        
        char cmd;
        string t;
        cin >> cmd >> t;
        
        if (cmd == '!') {
            break;
        } 
        if (cmd == '?') {
            pre = t[1];
        }
    }
    return 0;
}
0