結果
問題 | No.1330 Multiply or Divide |
ユーザー |
![]() |
提出日時 | 2021-01-08 22:33:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 339 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 32,676 KB |
最終ジャッジ日時 | 2024-11-16 13:29:05 |
合計ジャッジ時間 | 5,314 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 38 WA * 8 |
ソースコード
def f(x):if x % P == 0:x //= Preturn xN, M, P, *A = map(int, open(0).read().split())max_A = max(A)t = max(map(f, A))if max_A > M:print(1)exit()if t == 1:print(-1)exit()x = 1result = 0while True:result += 1if x * max_A > M:breakx *= tprint(result)