結果
| 問題 |
No.3362 積分!!!
|
| コンテスト | |
| ユーザー |
Kude
|
| 提出日時 | 2025-11-17 21:02:50 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 223 bytes |
| コンパイル時間 | 332 ms |
| コンパイル使用メモリ | 11,904 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2025-11-17 21:02:52 |
| 合計ジャッジ時間 | 2,467 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 6 |
| other | AC * 14 |
ソースコード
from fractions import Fraction
n, a, b = map(int, input().split())
ans = Fraction()
for i in range(n + 1):
ans += int(input()) * Fraction(1, i + 1) * (b ** (i + 1) - a ** (i + 1))
print(ans.numerator // ans.denominator)
Kude