結果

問題 No.166 マス埋めゲーム
ユーザー uafr_csuafr_cs
提出日時 2015-05-15 18:11:05
言語 Java21
(openjdk 21)
結果
AC  
実行時間 137 ms / 1,000 ms
コード長 507 bytes
コンパイル時間 2,169 ms
コンパイル使用メモリ 71,744 KB
実行使用メモリ 56,076 KB
最終ジャッジ日時 2023-09-20 08:11:06
合計ジャッジ時間 6,542 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,872 KB
testcase_01 AC 122 ms
56,064 KB
testcase_02 AC 123 ms
55,520 KB
testcase_03 AC 122 ms
55,932 KB
testcase_04 AC 124 ms
55,900 KB
testcase_05 AC 126 ms
55,768 KB
testcase_06 AC 127 ms
55,680 KB
testcase_07 AC 123 ms
55,860 KB
testcase_08 AC 127 ms
55,940 KB
testcase_09 AC 123 ms
55,988 KB
testcase_10 AC 137 ms
56,060 KB
testcase_11 AC 125 ms
55,756 KB
testcase_12 AC 123 ms
55,760 KB
testcase_13 AC 122 ms
55,908 KB
testcase_14 AC 125 ms
56,076 KB
testcase_15 AC 125 ms
56,040 KB
testcase_16 AC 123 ms
55,708 KB
testcase_17 AC 124 ms
55,736 KB
testcase_18 AC 126 ms
55,764 KB
testcase_19 AC 127 ms
55,992 KB
testcase_20 AC 125 ms
55,756 KB
testcase_21 AC 125 ms
55,760 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
	public static void main (String[] args) throws java.lang.Exception
	{
		Scanner sc = new Scanner(System.in);
		
		final long H = sc.nextLong();
		final long W = sc.nextLong();
		final long N = sc.nextLong();
		final long K = sc.nextLong();
		
		System.out.println((H * W) % N == (K % N) ? "YES" : "NO");
	}
}
0