結果

問題 No.1462 最弱WEAKER
ユーザー phspls
提出日時 2022-11-05 23:50:00
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 430 bytes
コンパイル時間 14,438 ms
コンパイル使用メモリ 397,752 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-19 16:50:30
合計ジャッジ時間 14,332 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 18
権限があれば一括ダウンロードができます

ソースコード

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 % 6 == 1 {
        println!("NO");
    } else if n % 6 == 2 {
        println!("YES");
    } else if n % 6 == 3 {
        println!("NO");
    } else if n % 6 == 4 {
        println!("YES")
    } else if n % 6 == 5 {
        println!("NO");
    } else {
        println!("YES");
    }
}
0