結果
| 問題 |
No.384 マス埋めゲーム2
|
| コンテスト | |
| ユーザー |
htensai
|
| 提出日時 | 2020-02-03 17:29:20 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 401 bytes |
| コンパイル時間 | 3,993 ms |
| コンパイル使用メモリ | 77,256 KB |
| 実行使用メモリ | 55,984 KB |
| 最終ジャッジ日時 | 2024-09-19 02:34:02 |
| 合計ジャッジ時間 | 6,501 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 14 WA * 2 RE * 6 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long h = sc.nextInt();
long w = sc.nextInt();
int n = sc.nextInt();
int k = sc.nextInt();
if ((h + w - 1) % n == k) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
htensai