結果
| 問題 | No.1250 汝は倍数なりや? |
| コンテスト | |
| ユーザー |
mesame3993
|
| 提出日時 | 2021-11-18 00:48:33 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 251 bytes |
| 記録 | |
| コンパイル時間 | 188 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 117,248 KB |
| 最終ジャッジ日時 | 2026-05-30 06:07:40 |
| 合計ジャッジ時間 | 5,161 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 30 TLE * 1 -- * 18 |
ソースコード
def main():
from sys import stdin
readline=stdin.readline
n, h = map(int, readline().split())
A = list(map(int, readline().split()))
now = 1
for a in A:
now *= a
if now % h == 0:
print('YES')
exit()
print('NO')
main()
mesame3993