結果
問題 |
No.166 マス埋めゲーム
|
ユーザー |
![]() |
提出日時 | 2015-03-19 23:22:27 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 355 bytes |
コンパイル時間 | 1,955 ms |
コンパイル使用メモリ | 73,968 KB |
実行使用メモリ | 41,652 KB |
最終ジャッジ日時 | 2024-06-28 23:13:30 |
合計ジャッジ時間 | 4,831 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 17 RE * 3 |
ソースコード
package no167; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); long n = sc.nextLong(); long k = sc.nextInt(); if ((long) h * w % n == k % n) { System.out.println("YES"); }else{ System.out.println("NO"); } } }