結果
| 問題 |
No.926 休日の平均
|
| ユーザー |
liny_tail
|
| 提出日時 | 2020-08-11 12:37:37 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 224 bytes |
| コンパイル時間 | 240 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 28,160 KB |
| 最終ジャッジ日時 | 2024-10-09 11:21:25 |
| 合計ジャッジ時間 | 4,252 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 TLE * 1 -- * 14 |
ソースコード
import itertools
A, B, C = [int(i) for i in input().strip().split(' ')]
ans = (A // B) * C
lst = [sum(i) for i in itertools.combinations([(1 if j < C else 0) for j in range(B)], r=(A % B))]
print(ans + sum(lst) / len(lst))
liny_tail