結果

問題 No.166 マス埋めゲーム
ユーザー tookunn_1213tookunn_1213
提出日時 2015-03-19 23:50:47
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 207 bytes
コンパイル時間 64 ms
コンパイル使用メモリ 6,692 KB
実行使用メモリ 815,188 KB
最終ジャッジ日時 2023-09-11 08:47:34
合計ジャッジ時間 2,194 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 WA -
testcase_07 RE -
testcase_08 WA -
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(long,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
print a
if a[S-1] == K:
	print "YES"
else:
	print "NO"
0