結果
問題 | No.67 よくある棒を切る問題 (1) |
ユーザー | ytft |
提出日時 | 2022-11-07 10:09:12 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 189 ms / 5,000 ms |
コード長 | 242 bytes |
コンパイル時間 | 907 ms |
コンパイル使用メモリ | 82,048 KB |
実行使用メモリ | 107,136 KB |
最終ジャッジ日時 | 2024-07-20 18:34:09 |
合計ジャッジ時間 | 6,488 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 31 |
ソースコード
import sys input=lambda:sys.stdin.readline().rstrip() N=int(input()) L=list(map(int,input().split())) K=int(input()) m=[0.0,float(max(L))] for j in range(70): mid=sum(m)/2 count=0 for i in L: count+=int(i/mid) m[K>count]=mid print(m[1])