結果
問題 |
No.1330 Multiply or Divide
|
ユーザー |
![]() |
提出日時 | 2021-01-08 22:54:40 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 238 bytes |
コンパイル時間 | 296 ms |
コンパイル使用メモリ | 82,228 KB |
実行使用メモリ | 112,256 KB |
最終ジャッジ日時 | 2024-11-16 14:35:47 |
合計ジャッジ時間 | 5,362 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 39 WA * 7 |
ソースコード
n,m,p,*a=map(int,open(0).read().split()) a.sort(reverse=True) for i in a: if i%p!=0 and i!=1: break x=1 for j in range(10**7): if x*a[0]>m: print(j+1) exit(0) x*=i if x%p==0: x//=p print(-1)