結果

問題 No.166 マス埋めゲーム
ユーザー dazy
提出日時 2016-09-23 17:13:48
言語 Java
(openjdk 23)
結果
WA  
実行時間 -
コード長 363 bytes
コンパイル時間 3,219 ms
コンパイル使用メモリ 73,984 KB
実行使用メモリ 41,592 KB
最終ジャッジ日時 2024-11-17 19:03:20
合計ジャッジ時間 6,712 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 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 || HW==K) ans = "YES";
        System.out.println(HW);
    }
}
0