結果
| 問題 |
No.166 マス埋めゲーム
|
| コンテスト | |
| ユーザー |
fkwnw3_1243
|
| 提出日時 | 2017-04-30 08:23:13 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 54 ms / 1,000 ms |
| コード長 | 756 bytes |
| コンパイル時間 | 2,115 ms |
| コンパイル使用メモリ | 73,544 KB |
| 実行使用メモリ | 36,956 KB |
| 最終ジャッジ日時 | 2024-09-13 23:07:57 |
| 合計ジャッジ時間 | 4,365 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import static java.lang.System.in;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(in));
String[] inputs = reader.readLine().split(" ");
long H = Long.parseLong(inputs[0]);
long W = Long.parseLong(inputs[1]);
long N = Long.parseLong(inputs[2]);
long K = Long.parseLong(inputs[3]);
if ((H * W) % N == 0 && N == K) {
System.out.println("YES");
} else if ((H * W) % N == K) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
fkwnw3_1243