結果
問題 | No.166 マス埋めゲーム |
ユーザー | tookunn_1213 |
提出日時 | 2015-03-19 23:55:15 |
言語 | Python2 (2.7.18) |
結果 |
MLE
|
実行時間 | - |
コード長 | 205 bytes |
コンパイル時間 | 635 ms |
コンパイル使用メモリ | 6,700 KB |
実行使用メモリ | 817,956 KB |
最終ジャッジ日時 | 2023-09-11 08:48:58 |
合計ジャッジ時間 | 3,188 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 11 ms
6,000 KB |
testcase_01 | AC | 11 ms
6,056 KB |
testcase_02 | AC | 11 ms
6,064 KB |
testcase_03 | AC | 11 ms
6,028 KB |
testcase_04 | AC | 11 ms
6,172 KB |
testcase_05 | AC | 12 ms
5,996 KB |
testcase_06 | AC | 11 ms
6,140 KB |
testcase_07 | MLE | - |
testcase_08 | -- | - |
testcase_09 | -- | - |
testcase_10 | -- | - |
testcase_11 | -- | - |
testcase_12 | -- | - |
testcase_13 | -- | - |
testcase_14 | -- | - |
testcase_15 | -- | - |
testcase_16 | -- | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
ソースコード
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"