結果

問題 No.1346 Rectangle
ユーザー fukafukatani
提出日時 2021-01-28 23:40:32
言語 Rust
(1.83.0 + proconio)
結果
WA  
実行時間 -
コード長 321 bytes
コンパイル時間 14,169 ms
コンパイル使用メモリ 377,128 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-06-26 07:22:59
合計ジャッジ時間 13,514 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 13 WA * 4
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let n = read::<i64>();
    if n <= 6 {
        println!("4");
    } else if n <= 8 {
        println!("3");
    } else {
        println!("2");
    }
}

fn read<T: std::str::FromStr>() -> T {
    let mut s = String::new();
    std::io::stdin().read_line(&mut s).ok();
    s.trim().parse().ok().unwrap()
}
0