結果
問題 | No.1250 汝は倍数なりや? |
ユーザー | HAGI_TARO |
提出日時 | 2021-10-12 10:37:45 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 91 ms / 1,000 ms |
コード長 | 164 bytes |
コンパイル時間 | 168 ms |
コンパイル使用メモリ | 82,396 KB |
実行使用メモリ | 107,428 KB |
最終ジャッジ日時 | 2024-09-16 19:03:00 |
合計ジャッジ時間 | 4,157 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 49 |
ソースコード
n,h = map(int,input().split()) A = list(map(int,input().split())) cnt = 1 for i in range(n): cnt = cnt * A[i] % h if cnt: print("NO") else: print("YES")