結果

問題 No.2925 2-Letter Shiritori
ユーザー tnodino
提出日時 2024-06-16 10:01:10
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 59 ms / 2,000 ms
コード長 412 bytes
コンパイル時間 15,837 ms
コンパイル使用メモリ 379,248 KB
実行使用メモリ 25,232 KB
平均クエリ数 26.00
最終ジャッジ日時 2024-10-12 14:00:54
合計ジャッジ時間 13,337 ms
ジャッジサーバーID
(参考情報)
judge2 / judge
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

use proconio::input_interactive;

#[allow(non_snake_case)]
fn main() {
    input_interactive! {
        a: char,
    }
    for i in 0..26 {
        if i == 0 {
            println!("? {}{}", a, a);
        }
        else {
            input_interactive! {
                (_, S): (char, String),
            }
            let b = S.chars().last().unwrap();
            println!("? {}{}", b, a);
        }
    }
}
0