結果
| 問題 |
No.1273 はじめのζ関数
|
| コンテスト | |
| ユーザー |
Somtk_42
|
| 提出日時 | 2020-10-30 22:10:55 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 224 bytes |
| コンパイル時間 | 105 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-07-22 00:52:13 |
| 合計ジャッジ時間 | 6,210 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 39 WA * 1 |
ソースコード
from math import floor
def z(n):
r = 0
for i in range(1,1000):
r += 1/pow(i, n)
return r
x = int(input())
if x >= 21:
print(0)
exit()
ans = 0
for i in range(x, x+200):
ans += z(i)-1
print(floor(ans*1000000))
Somtk_42