結果
| 問題 | No.384 マス埋めゲーム2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-01 23:33:38 |
| 言語 | Java (openjdk 27 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 99 ms / 1,000 ms |
| + 657µs | |
| コード長 | 582 bytes |
| 記録 | |
| コンパイル時間 | 4,019 ms |
| コンパイル使用メモリ | 85,188 KB |
| 実行使用メモリ | 46,768 KB |
| 最終ジャッジ日時 | 2026-10-13 08:32:28 |
| 合計ジャッジ時間 | 7,361 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import java.io.*;
import java.util.*;
public class Main_yukicoder384 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
Printer pr = new Printer(System.out);
int h = sc.nextInt();
int w = sc.nextInt();
long n = sc.nextLong();
long k = sc.nextLong();
if ((h - 1 + w - 1) % n == k - 1) {
pr.println("YES");
} else {
pr.println("NO");
}
pr.close();
sc.close();
}
private static class Printer extends PrintWriter {
Printer(PrintStream out) {
super(out);
}
}
}