結果
| 問題 |
No.2971 無理積分
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-29 21:31:29 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 162 ms / 1,000 ms |
| コード長 | 418 bytes |
| コンパイル時間 | 199 ms |
| コンパイル使用メモリ | 81,664 KB |
| 実行使用メモリ | 89,728 KB |
| 最終ジャッジ日時 | 2024-11-29 21:31:55 |
| 合計ジャッジ時間 | 6,946 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 36 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
#n = int(input())
#alist = list(map(int,input().split()))
#alist = []
#s = input()
n = int(input())
ans = 0
m = 100000
x = n**3
for i in range(m):
ans += 1/m * (math.sqrt((i/m)**3 + x) + math.sqrt(((i+1)/m)**3 + x))/2
print(ans)