結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 179 ms
80,780 KB
testcase_01 AC 184 ms
80,804 KB
testcase_02 AC 180 ms
80,836 KB
testcase_03 AC 179 ms
80,804 KB
testcase_04 AC 177 ms
80,876 KB
testcase_05 WA -
testcase_06 AC 180 ms
80,852 KB
testcase_07 AC 181 ms
80,780 KB
testcase_08 AC 181 ms
80,552 KB
testcase_09 AC 180 ms
80,712 KB
testcase_10 AC 184 ms
80,956 KB
testcase_11 AC 178 ms
80,776 KB
testcase_12 AC 179 ms
80,776 KB
testcase_13 AC 178 ms
80,820 KB
testcase_14 AC 179 ms
80,744 KB
testcase_15 AC 180 ms
80,776 KB
testcase_16 AC 180 ms
80,628 KB
testcase_17 AC 177 ms
80,792 KB
testcase_18 AC 177 ms
80,776 KB
testcase_19 AC 179 ms
80,728 KB
testcase_20 WA -
testcase_21 AC 180 ms
80,780 KB
testcase_22 AC 181 ms
80,608 KB
testcase_23 AC 184 ms
80,820 KB
testcase_24 AC 181 ms
80,536 KB
testcase_25 AC 202 ms
80,752 KB
testcase_26 AC 186 ms
80,576 KB
testcase_27 AC 179 ms
80,600 KB
testcase_28 AC 179 ms
80,752 KB
testcase_29 AC 177 ms
80,840 KB
testcase_30 AC 180 ms
80,704 KB
testcase_31 AC 178 ms
80,744 KB
testcase_32 AC 180 ms
80,820 KB
testcase_33 AC 178 ms
80,824 KB
testcase_34 AC 178 ms
80,740 KB
testcase_35 AC 180 ms
80,916 KB
testcase_36 AC 178 ms
80,832 KB
testcase_37 AC 179 ms
80,704 KB
testcase_38 AC 180 ms
80,748 KB
testcase_39 AC 183 ms
80,924 KB
testcase_40 AC 181 ms
81,436 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,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()
0