結果

問題 No.166 マス埋めゲーム
ユーザー jamad
提出日時 2017-08-02 04:45:57
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
TLE  
実行時間 -
コード長 214 bytes
コンパイル時間 98 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 17,444 KB
最終ジャッジ日時 2024-10-11 01:06:04
合計ジャッジ時間 2,858 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 TLE * 1 -- * 14
権限があれば一括ダウンロードができます

ソースコード

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