返回 DeepSeek-Reasonix
1 def p95(sorted_values):
2 if not sorted_values:
3 return 0
4 return sorted_values[int(len(sorted_values) * 0.95)]
5
6 def rate(events, seconds):
7 return len(events) / seconds
8
8 lines PYTHON