結果

問題 No.166 マス埋めゲーム
ユーザー tookunn_1213tookunn_1213
提出日時 2015-03-19 23:46:13
言語 Python2
(2.7.18)
結果
RE  
実行時間 -
コード長 197 bytes
コンパイル時間 187 ms
コンパイル使用メモリ 6,660 KB
実行使用メモリ 813,588 KB
最終ジャッジ日時 2023-09-11 08:43:53
合計ジャッジ時間 2,203 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
6,044 KB
testcase_01 AC 12 ms
6,004 KB
testcase_02 AC 11 ms
5,860 KB
testcase_03 AC 11 ms
5,996 KB
testcase_04 AC 11 ms
5,948 KB
testcase_05 AC 11 ms
5,884 KB
testcase_06 AC 11 ms
5,992 KB
testcase_07 RE -
testcase_08 AC 16 ms
6,748 KB
testcase_09 RE -
testcase_10 RE -
testcase_11 MLE -
testcase_12 -- -
testcase_13 -- -
testcase_14 -- -
testcase_15 -- -
testcase_16 -- -
testcase_17 -- -
testcase_18 -- -
testcase_19 -- -
testcase_20 -- -
testcase_21 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

H,W,N,K = map(int,raw_input().split(' '))
S = H*W
a = [i for i in range(S)]
n = 1
for i in range(len(a)):
	a[i] = n % (N+1)
	n += 1
	if n > N:
		n = 1
if a[S-1] == K:
	print "YES"
else:
	print "NO"
0