0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

yukicoder contest 272 (Weird math contest) 参戦記

Posted at

yukicoder contest 272 (Weird math contest) 参戦記

最近数学ばっかりなのなんでなんだ…….

A 1271 初めての級数

式のとおりに実装すれば通った.

k = int(input())

print(sum(1 / (n * (n + k)) for n in range(1, 10 ** 6)))

B 1272 珍しい級数

式のとおりに実装すれば通った.

from math import sin

k = int(input())

print(sum(sin(k * n) / (n ** n) for n in range(1, 100)))

C 1273 はじめのζ関数

testcase_20 だけ通らず試合終了.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?