結果

問題 No.166 マス埋めゲーム
ユーザー Tsukasa_TypeTsukasa_Type
提出日時 2018-02-25 01:19:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 117 ms / 1,000 ms
コード長 285 bytes
コンパイル時間 1,854 ms
コンパイル使用メモリ 74,208 KB
実行使用メモリ 41,760 KB
最終ジャッジ日時 2024-04-24 11:54:23
合計ジャッジ時間 5,142 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 113 ms
41,112 KB
testcase_01 AC 112 ms
41,216 KB
testcase_02 AC 110 ms
41,224 KB
testcase_03 AC 103 ms
41,760 KB
testcase_04 AC 109 ms
41,320 KB
testcase_05 AC 99 ms
40,292 KB
testcase_06 AC 110 ms
41,180 KB
testcase_07 AC 101 ms
40,420 KB
testcase_08 AC 114 ms
41,672 KB
testcase_09 AC 117 ms
41,440 KB
testcase_10 AC 111 ms
41,552 KB
testcase_11 AC 108 ms
41,484 KB
testcase_12 AC 99 ms
40,288 KB
testcase_13 AC 111 ms
40,904 KB
testcase_14 AC 105 ms
41,468 KB
testcase_15 AC 102 ms
40,304 KB
testcase_16 AC 102 ms
40,688 KB
testcase_17 AC 98 ms
40,172 KB
testcase_18 AC 102 ms
40,352 KB
testcase_19 AC 98 ms
40,352 KB
testcase_20 AC 106 ms
41,192 KB
testcase_21 AC 94 ms
40,008 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-1)%n+1==k?"YES":"NO");
	}
}
0