結果
問題 |
No.384 マス埋めゲーム2
|
ユーザー |
|
提出日時 | 2016-07-01 23:19:19 |
言語 | Java (openjdk 23) |
結果 |
RE
|
実行時間 | - |
コード長 | 353 bytes |
コンパイル時間 | 3,446 ms |
コンパイル使用メモリ | 74,204 KB |
実行使用メモリ | 41,540 KB |
最終ジャッジ日時 | 2024-10-12 01:12:32 |
合計ジャッジ時間 | 7,731 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 16 RE * 6 |
ソースコード
package test; import java.util.Scanner; public class atc { public static void main(String[] args) { Scanner sc=new Scanner(System.in); long h=sc.nextInt(); long w=sc.nextInt(); long n=sc.nextInt(); long k=sc.nextInt(); long ans=(h+w-1)%n; if(ans==0)ans=n; if(ans==k) System.out.println("YES"); else System.out.println("NO"); } }