結果

問題 No.441 和か積
ユーザー cra77756176
提出日時 2022-12-10 19:32:01
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 344 bytes
コンパイル時間 11,276 ms
コンパイル使用メモリ 378,680 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-14 23:51:29
合計ジャッジ時間 12,725 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut ab = String::new();
    std::io::stdin().read_line(&mut ab).ok();
    let ab: Vec<&str> = ab.split_whitespace().collect();

    println!(
        "{}",
        match (ab[0], ab[1]) {
            ("0", "0") | ("2", "2") => 'E',
            ("0" | "1", _) | (_, "0" | "1") => 'S',
            _ => 'P',
        }
    );
}
0