結果
問題 | No.477 MVP |
ユーザー |
![]() |
提出日時 | 2020-01-08 10:52:05 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 429 bytes |
コンパイル時間 | 207 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-11-23 02:26:16 |
合計ジャッジ時間 | 1,337 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 8 WA * 4 |
ソースコード
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 = Noneif before_list[-1] == 0:res = int(before_list[0])else:res = int(before_list[0]) + 1print(res)