結果
問題 | No.2461 一点張り |
ユーザー | 👑 timi |
提出日時 | 2023-09-08 21:47:56 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 291 bytes |
コンパイル時間 | 526 ms |
コンパイル使用メモリ | 86,724 KB |
実行使用メモリ | 105,660 KB |
最終ジャッジ日時 | 2023-09-08 21:48:02 |
合計ジャッジ時間 | 4,887 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 320 ms
92,940 KB |
testcase_01 | TLE | - |
testcase_02 | -- | - |
testcase_03 | -- | - |
testcase_04 | -- | - |
testcase_05 | -- | - |
testcase_06 | -- | - |
testcase_07 | -- | - |
ソースコード
N=int(input()) from decimal import Decimal for _ in range(N): x,y=input().split() y=int(y) if x[-2]=='.': x=x+'00' elif x[-2]=='.': x=x+'0' x=int(x.replace('.','')) ans=0;c=1 for i in range(1,y): d=Decimal(c*x)/Decimal(1000) ans+=i*d c-=d print(ans+y*c)