結果

問題 No.1119 Division 3
ユーザー Strorkis
提出日時 2020-07-22 21:24:18
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 488 bytes
コンパイル時間 15,517 ms
コンパイル使用メモリ 382,596 KB
実行使用メモリ 6,944 KB
最終ジャッジ日時 2024-06-22 13:00:43
合計ジャッジ時間 14,844 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let (x, y, z): (u32, u32, u32) = {
        let mut buf = String::new();
        std::io::stdin().read_line(&mut buf).unwrap();
        let mut iter = buf.split_whitespace();
        (
            iter.next().unwrap().parse().unwrap(),
            iter.next().unwrap().parse().unwrap(),
            iter.next().unwrap().parse().unwrap(),
        )
    };

    if x % 3 == 0 || y % 3 == 0 || z % 3 == 0 {
        println!("Yes");
    } else {
        println!("No");
    }
}
0