結果

問題 No.166 マス埋めゲーム
ユーザー tookunn_1213
提出日時 2015-03-19 23:50:47
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 207 bytes
コンパイル時間 428 ms
コンパイル使用メモリ 6,784 KB
実行使用メモリ 818,176 KB
最終ジャッジ日時 2024-06-28 23:26:20
合計ジャッジ時間 2,439 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other WA * 6 RE * 3 MLE * 1 -- * 10
権限があれば一括ダウンロードができます

ソースコード

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