結果
問題 | No.477 MVP |
ユーザー |
![]() |
提出日時 | 2020-01-08 10:54:56 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 33 ms / 1,000 ms |
コード長 | 364 bytes |
コンパイル時間 | 163 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-23 02:26:33 |
合計ジャッジ時間 | 1,166 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 12 |
ソースコード
import mathdef div_calc(n, k, time):res_list = []cur = ncount = 0while count < time:res_list.append(cur // k)cur = cur % k * 10count += 1res_list.insert(1, '.')return res_listn, k = map(int,input().split())before_list = div_calc(n, k + 1, 2)res = Noneres = int(before_list[0]) + 1print(res)