結果
| 問題 | No.1273 はじめのζ関数 |
| コンテスト | |
| ユーザー |
tanimani364
|
| 提出日時 | 2021-04-01 20:15:04 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 426 bytes |
| 記録 | |
| コンパイル時間 | 66 ms |
| コンパイル使用メモリ | 82,252 KB |
| 実行使用メモリ | 71,800 KB |
| 最終ジャッジ日時 | 2026-10-04 22:32:48 |
| 合計ジャッジ時間 | 3,796 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 38 WA * 2 |
ソースコード
#!/usr/bin/env python3 #coding:utf-8 import math import string import random import heapq from sys import stdin # import numpy as np # from matplotlib import pyplot as plt def main(): read=stdin.readline #edit here! x=int(read()) ans=0 for i in range(2,1000000): res=0 res+=math.pow(i,1-x) if res<1e-7: break res/=i-1 ans+=res ans*=1000000 ans=int(ans) print(ans) if __name__ == '__main__': main()
tanimani364