結果

問題 No.166 マス埋めゲーム
ユーザー tookunn_1213
提出日時 2015-03-19 23:55:15
言語 Python2
(2.7.18)
結果
MLE  
実行時間 -
コード長 205 bytes
コンパイル時間 156 ms
コンパイル使用メモリ 7,072 KB
実行使用メモリ 822,176 KB
最終ジャッジ日時 2024-06-28 23:27:52
合計ジャッジ時間 3,191 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 MLE * 1 -- * 14
権限があれば一括ダウンロードができます

ソースコード

diff #

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