結果

問題 No.1273 はじめのζ関数
ユーザー tanimani364tanimani364
提出日時 2021-04-01 20:13:57
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 400 bytes
コンパイル時間 292 ms
コンパイル使用メモリ 87,116 KB
実行使用メモリ 81,860 KB
最終ジャッジ日時 2023-08-22 22:57:47
合計ジャッジ時間 9,358 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 174 ms
81,484 KB
testcase_01 AC 177 ms
81,436 KB
testcase_02 AC 179 ms
81,416 KB
testcase_03 AC 180 ms
81,584 KB
testcase_04 AC 176 ms
81,656 KB
testcase_05 AC 172 ms
81,404 KB
testcase_06 AC 171 ms
81,604 KB
testcase_07 AC 170 ms
81,536 KB
testcase_08 AC 174 ms
81,736 KB
testcase_09 AC 172 ms
81,484 KB
testcase_10 AC 174 ms
81,636 KB
testcase_11 AC 173 ms
81,516 KB
testcase_12 AC 172 ms
81,416 KB
testcase_13 AC 176 ms
81,760 KB
testcase_14 AC 175 ms
81,312 KB
testcase_15 AC 178 ms
81,760 KB
testcase_16 AC 174 ms
81,532 KB
testcase_17 AC 174 ms
81,316 KB
testcase_18 AC 173 ms
81,460 KB
testcase_19 AC 171 ms
81,720 KB
testcase_20 WA -
testcase_21 AC 170 ms
81,776 KB
testcase_22 AC 171 ms
81,348 KB
testcase_23 AC 171 ms
81,544 KB
testcase_24 AC 169 ms
81,700 KB
testcase_25 AC 175 ms
81,356 KB
testcase_26 AC 171 ms
81,504 KB
testcase_27 AC 173 ms
81,624 KB
testcase_28 AC 179 ms
81,508 KB
testcase_29 AC 171 ms
81,612 KB
testcase_30 AC 170 ms
81,408 KB
testcase_31 AC 171 ms
81,572 KB
testcase_32 AC 169 ms
81,772 KB
testcase_33 AC 176 ms
81,624 KB
testcase_34 AC 179 ms
81,352 KB
testcase_35 AC 173 ms
81,544 KB
testcase_36 AC 173 ms
81,552 KB
testcase_37 AC 171 ms
81,552 KB
testcase_38 AC 172 ms
81,744 KB
testcase_39 AC 171 ms
81,552 KB
testcase_40 AC 171 ms
81,536 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#!/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,10000):
		res=0
		res+=math.pow(i,1-x)
		res/=i-1
		ans+=res

	ans*=1000000
	ans=int(ans)
	print(ans)
if __name__ == '__main__':
	main()
0