結果

問題 No.166 マス埋めゲーム
ユーザー jamadjamad
提出日時 2017-08-02 04:45:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 214 bytes
コンパイル時間 78 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 17,692 KB
最終ジャッジ日時 2024-04-19 08:30:10
合計ジャッジ時間 2,859 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
16,256 KB
testcase_01 AC 29 ms
10,624 KB
testcase_02 AC 31 ms
10,624 KB
testcase_03 AC 32 ms
10,624 KB
testcase_04 AC 32 ms
10,624 KB
testcase_05 AC 31 ms
10,624 KB
testcase_06 AC 29 ms
10,624 KB
testcase_07 TLE -
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 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

H,W,N,K=map(int,input().split())
cell=H*W
game=1
while game:
    for i in range(1,N+1):
        cell-=1
        if cell==0:
            print(('NO','YES')[i==K])
            game=0
            break
#print(H,W,N,K)
0