結果
| 問題 | No.1330 Multiply or Divide |
| コンテスト | |
| ユーザー |
ryuusagi
|
| 提出日時 | 2021-01-08 23:09:16 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| 記録 | |
| コンパイル時間 | 301 ms |
| コンパイル使用メモリ | 85,760 KB |
| 実行使用メモリ | 118,016 KB |
| 最終ジャッジ日時 | 2026-05-11 20:57:00 |
| 合計ジャッジ時間 | 4,698 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 39 WA * 12 |
ソースコード
n,m,p,*a=map(int,open(0).read().split())
a.sort(reverse=True)
b=[i if i%p else i//p for i in a]
b.sort(reverse=True)
x=1
j=0
while x<=m:
if x*a[0]>m:
print(j+1)
exit()
if b[0]==1:
print(-1)
exit()
x*=b[0]
j+=1
ryuusagi