結果

問題 No.384 マス埋めゲーム2
ユーザー kohaku_kohaku
提出日時 2016-12-06 23:55:46
言語 Java
(openjdk 23)
結果
RE  
実行時間 -
コード長 407 bytes
コンパイル時間 3,228 ms
コンパイル使用メモリ 73,712 KB
実行使用メモリ 41,436 KB
最終ジャッジ日時 2024-11-28 03:19:13
合計ジャッジ時間 6,292 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 16 RE * 6
権限があれば一括ダウンロードができます

ソースコード

diff #

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");
        }
    }
}
0