結果
問題 | No.2461 一点張り |
ユーザー | 👑 timi |
提出日時 | 2023-09-08 21:39:10 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 251 bytes |
コンパイル時間 | 884 ms |
コンパイル使用メモリ | 86,680 KB |
実行使用メモリ | 77,932 KB |
最終ジャッジ日時 | 2023-09-08 21:39:15 |
合計ジャッジ時間 | 2,424 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge11 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 73 ms
71,876 KB |
testcase_01 | WA | - |
testcase_02 | AC | 119 ms
77,584 KB |
testcase_03 | AC | 138 ms
77,700 KB |
testcase_04 | WA | - |
testcase_05 | AC | 128 ms
77,760 KB |
testcase_06 | AC | 121 ms
77,580 KB |
testcase_07 | AC | 130 ms
77,360 KB |
ソースコード
N=int(input()) 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=c*x*pow(10,-3) ans+=i*d c-=d print(ans+y*c)