結果
| 問題 | No.166 マス埋めゲーム |
| コンテスト | |
| ユーザー |
ぴろず
|
| 提出日時 | 2015-03-19 23:22:27 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 355 bytes |
| 記録 | |
| コンパイル時間 | 1,614 ms |
| コンパイル使用メモリ | 81,996 KB |
| 実行使用メモリ | 47,040 KB |
| 最終ジャッジ日時 | 2026-03-18 05:45:29 |
| 合計ジャッジ時間 | 3,994 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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");
}
}
}
ぴろず