結果

問題 No.384 マス埋めゲーム2
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-25 01:28:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 1,000 ms
コード長 285 bytes
コンパイル時間 2,354 ms
コンパイル使用メモリ 73,648 KB
実行使用メモリ 41,688 KB
最終ジャッジ日時 2024-04-24 12:13:55
合計ジャッジ時間 6,782 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 132 ms
41,580 KB
testcase_01 AC 119 ms
40,296 KB
testcase_02 AC 118 ms
40,216 KB
testcase_03 AC 132 ms
41,256 KB
testcase_04 AC 119 ms
40,076 KB
testcase_05 AC 133 ms
41,448 KB
testcase_06 AC 131 ms
41,688 KB
testcase_07 AC 131 ms
41,132 KB
testcase_08 AC 130 ms
41,312 KB
testcase_09 AC 131 ms
41,064 KB
testcase_10 AC 118 ms
40,088 KB
testcase_11 AC 131 ms
41,400 KB
testcase_12 AC 131 ms
41,548 KB
testcase_13 AC 129 ms
41,088 KB
testcase_14 AC 132 ms
41,284 KB
testcase_15 AC 129 ms
40,824 KB
testcase_16 AC 132 ms
41,144 KB
testcase_17 AC 129 ms
41,360 KB
testcase_18 AC 132 ms
41,256 KB
testcase_19 AC 130 ms
41,200 KB
testcase_20 AC 137 ms
41,256 KB
testcase_21 AC 133 ms
41,344 KB
testcase_22 AC 134 ms
41,300 KB
testcase_23 AC 131 ms
41,112 KB
testcase_24 AC 133 ms
41,452 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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