結果

問題 No.166 マス埋めゲーム
ユーザー dazy
提出日時 2016-09-23 17:19:59
言語 Java
(openjdk 23)
結果
AC  
実行時間 125 ms / 1,000 ms
コード長 357 bytes
コンパイル時間 3,114 ms
コンパイル使用メモリ 74,348 KB
実行使用メモリ 41,544 KB
最終ジャッジ日時 2024-11-17 19:03:45
合計ジャッジ時間 6,506 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

public class Run {
    public static void main (String arg[]) {
        Scanner scan = new Scanner(System.in);
        String ans = "NO";
        long HW = scan.nextLong() * scan.nextLong();
        long N = scan.nextLong();
        long K = scan.nextLong();
        if (HW%N==K%N) ans = "YES";
        System.out.println(ans);
    }
}
0