結果
| 問題 |
No.384 マス埋めゲーム2
|
| コンテスト | |
| ユーザー |
tenten
|
| 提出日時 | 2020-10-15 08:33:00 |
| 言語 | Java (openjdk 23) |
| 結果 |
AC
|
| 実行時間 | 121 ms / 1,000 ms |
| コード長 | 373 bytes |
| コンパイル時間 | 2,904 ms |
| コンパイル使用メモリ | 73,928 KB |
| 実行使用メモリ | 41,340 KB |
| 最終ジャッジ日時 | 2024-07-20 19:39:49 |
| 合計ジャッジ時間 | 5,423 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
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();
long n = sc.nextLong();
long k = sc.nextLong();
if ((h + w - 1) % n == k % n) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
tenten