結果
問題 | No.2461 一点張り |
ユーザー | 👑 timi |
提出日時 | 2023-09-09 03:08:54 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 137 ms / 2,000 ms |
コード長 | 258 bytes |
コンパイル時間 | 293 ms |
コンパイル使用メモリ | 87,248 KB |
実行使用メモリ | 78,000 KB |
最終ジャッジ日時 | 2023-09-09 03:08:57 |
合計ジャッジ時間 | 2,062 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 79 ms
71,896 KB |
testcase_01 | AC | 117 ms
77,804 KB |
testcase_02 | AC | 116 ms
78,000 KB |
testcase_03 | AC | 137 ms
77,920 KB |
testcase_04 | AC | 124 ms
77,920 KB |
testcase_05 | AC | 126 ms
77,920 KB |
testcase_06 | AC | 128 ms
77,776 KB |
testcase_07 | AC | 103 ms
77,524 KB |
ソースコード
N=int(input()) for j in range(N): x,y=input().split() y=int(y) if x[-2]=='.': x=x+'00' elif x[-3]=='.': 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 e=ans+y*c print(e)