結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
![]() |
提出日時 | 2016-08-28 23:41:07 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 139 ms / 1,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 2,253 ms |
コンパイル使用メモリ | 74,972 KB |
実行使用メモリ | 58,516 KB |
最終ジャッジ日時 | 2024-11-14 06:40:59 |
合計ジャッジ時間 | 6,355 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
import java.util.Scanner; public class Main { static int[] an = new int[1000000]; public static void main(String[] args) { Scanner sc = new Scanner(System.in); long H = sc.nextLong(); long W = sc.nextLong(); long N = sc.nextLong(); long K = sc.nextLong(); if((H + W - 2) % N + 1 == K) System.out.println("YES"); else System.out.println("NO"); } }