結果
| 問題 | No.384 マス埋めゲーム2 |
| コンテスト | |
| ユーザー |
kohaku_kohaku
|
| 提出日時 | 2016-12-06 23:55:46 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 407 bytes |
| 記録 | |
| コンパイル時間 | 1,843 ms |
| コンパイル使用メモリ | 81,632 KB |
| 実行使用メモリ | 41,856 KB |
| 最終ジャッジ日時 | 2026-05-22 07:01:17 |
| 合計ジャッジ時間 | 5,039 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 16 RE * 6 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int H = sc.nextInt();
int W = sc.nextInt();
int N = sc.nextInt();
int K = sc.nextInt();
int L = (H+W-2)%N+1;
if(K==L){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
kohaku_kohaku