結果
問題 | No.1250 汝は倍数なりや? |
ユーザー |
|
提出日時 | 2020-10-28 04:03:34 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 72 ms / 1,000 ms |
コード長 | 192 bytes |
コンパイル時間 | 165 ms |
コンパイル使用メモリ | 82,524 KB |
実行使用メモリ | 92,624 KB |
最終ジャッジ日時 | 2024-07-21 22:09:20 |
合計ジャッジ時間 | 3,849 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 49 |
ソースコード
N, H = map(int, input().split()) ans = 1 for a in map(int, input().split()): ans *= a ans %= H if ans == 0: print('YES') exit() print('NO')