結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
![]() |
提出日時 | 2018-02-25 01:28:14 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 135 ms / 1,000 ms |
コード長 | 285 bytes |
コンパイル時間 | 2,402 ms |
コンパイル使用メモリ | 74,684 KB |
実行使用メモリ | 41,524 KB |
最終ジャッジ日時 | 2024-11-06 20:03:50 |
合計ジャッジ時間 | 6,722 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { long H = sc.nextLong(); long W = sc.nextLong(); long n = sc.nextLong(); long k = sc.nextLong(); System.out.println((H+W-2)%n+1==k?"YES":"NO"); } }