結果

問題 No.166 マス埋めゲーム
ユーザー cra77756176
提出日時 2022-12-07 00:19:50
言語 Rust
(1.83.0 + proconio)
結果
AC  
実行時間 1 ms / 1,000 ms
コード長 349 bytes
コンパイル時間 11,552 ms
コンパイル使用メモリ 378,488 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-13 11:25:29
合計ジャッジ時間 12,730 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

fn main() {
    let mut input = String::new();
    std::io::stdin().read_line(&mut input).ok();
    let input: Vec<u64> = input
        .split_whitespace()
        .map(|n| n.parse().unwrap())
        .collect();

    if (input[0] * input[1]) % input[2] == input[3] % input[2] {
        println!("YES");
    } else {
        println!("NO");
    }
}
0