結果
| 問題 |
No.384 マス埋めゲーム2
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-10-08 20:33:07 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 133 ms / 1,000 ms |
| コード長 | 364 bytes |
| コンパイル時間 | 1,954 ms |
| コンパイル使用メモリ | 74,092 KB |
| 実行使用メモリ | 54,276 KB |
| 最終ジャッジ日時 | 2024-10-12 15:42:07 |
| 合計ジャッジ時間 | 6,473 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
long H = sc.nextLong(), W = sc.nextLong(), N = sc.nextLong(), K = sc.nextLong();
sc.close();
if (((H - 1) + (W - 1)) % N + 1 == K) System.out.print("YES");
else System.out.print("NO");
}
}