結果

問題 No.1422 Social Distance in Train
ユーザー phspls
提出日時 2022-11-07 10:45:08
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 222 bytes
コンパイル時間 13,477 ms
コンパイル使用メモリ 382,876 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-20 19:10:21
合計ジャッジ時間 12,085 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 6 WA * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut n = String::new();
    std::io::stdin().read_line(&mut n).ok();
    let n: usize = n.trim().parse().unwrap();

    if n % 2 == 0 {
        println!("2");
    } else {
        println!("1");
    }
}
0