結果
| 問題 | No.384 マス埋めゲーム2 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-07-01 23:33:40 |
| 言語 | Java (openjdk 26.0.2.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 56 ms / 1,000 ms |
| + 492µs | |
| コード長 | 358 bytes |
| 記録 | |
| コンパイル時間 | 2,298 ms |
| コンパイル使用メモリ | 85,516 KB |
| 実行使用メモリ | 42,624 KB |
| 最終ジャッジ日時 | 2026-09-14 09:29:43 |
| 合計ジャッジ時間 | 5,215 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
package test;
import java.util.Scanner;
public class atc {
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();
long ans=(h+w-1)%n;
if(ans==0)ans=n;
if(ans==k) System.out.println("YES");
else System.out.println("NO");
}
}