結果
問題 | No.67 よくある棒を切る問題 (1) |
ユーザー | takakin |
提出日時 | 2020-05-03 20:19:39 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 104 ms |
コンパイル使用メモリ | 11,200 KB |
実行使用メモリ | 35,296 KB |
最終ジャッジ日時 | 2023-09-04 20:59:06 |
合計ジャッジ時間 | 35,497 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1,619 ms
35,296 KB |
testcase_01 | AC | 16 ms
7,892 KB |
testcase_02 | AC | 757 ms
16,700 KB |
testcase_03 | AC | 1,445 ms
24,180 KB |
testcase_04 | AC | 1,997 ms
29,160 KB |
testcase_05 | AC | 1,993 ms
29,120 KB |
testcase_06 | AC | 1,834 ms
29,008 KB |
testcase_07 | AC | 2,010 ms
30,280 KB |
testcase_08 | AC | 1,998 ms
30,248 KB |
testcase_09 | AC | 1,927 ms
30,124 KB |
testcase_10 | AC | 1,803 ms
28,472 KB |
testcase_11 | AC | 1,903 ms
28,120 KB |
testcase_12 | AC | 1,584 ms
26,408 KB |
testcase_13 | AC | 1,826 ms
28,604 KB |
testcase_14 | AC | 1,891 ms
29,436 KB |
testcase_15 | AC | 1,659 ms
26,916 KB |
testcase_16 | TLE | - |
testcase_17 | -- | - |
testcase_18 | -- | - |
testcase_19 | -- | - |
testcase_20 | -- | - |
testcase_21 | -- | - |
testcase_22 | -- | - |
testcase_23 | -- | - |
testcase_24 | -- | - |
testcase_25 | -- | - |
testcase_26 | -- | - |
testcase_27 | -- | - |
testcase_28 | -- | - |
testcase_29 | -- | - |
testcase_30 | -- | - |
ソースコード
import sys input=lambda: sys.stdin.readline().rstrip() n=int(input()) L=[int(i) for i in input().split()] k=int(input()) def chk(x): ct=0 for ln in L: ct+=int(ln/x) return ct>=k l,r=0,max(L) while r-l>10**(-9): mid=(l+r)/2 if chk(mid): l=mid else: r=mid print(l)