結果
問題 | No.68 よくある棒を切る問題 (2) |
ユーザー |
|
提出日時 | 2024-08-25 08:33:49 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 3,367 ms / 5,000 ms |
コード長 | 309 bytes |
コンパイル時間 | 230 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 279,932 KB |
最終ジャッジ日時 | 2024-08-25 08:34:36 |
合計ジャッジ時間 | 42,929 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
N = int(input()) L = list(map(int, input().split())) Q = int(input()) K = list(map(int, input().split())) num = [] L.sort(reverse = True) for i in range(N): for j in range(500002 // (i + 1)): num.append(L[i] / (j + 1.0)) num.sort(reverse = True) for k in K: print(num[k - 1])