結果
| 問題 |
No.166 マス埋めゲーム
|
| コンテスト | |
| ユーザー |
nbisco
|
| 提出日時 | 2016-03-27 11:28:19 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 35 ms / 1,000 ms |
| コード長 | 277 bytes |
| コンパイル時間 | 92 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 10,752 KB |
| 最終ジャッジ日時 | 2024-10-02 04:26:21 |
| 合計ジャッジ時間 | 1,669 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 20 |
ソースコード
#!/usr/bin/env python3
#fileencoding: utf-8
H, W, N, K = [int(i) for i in input().strip().split(" ")]
last = (H*W) % N
if K == N:
if last == 0:
print("YES")
else:
print("NO")
else:
if last == K:
print("YES")
else:
print("NO")
nbisco