結果

問題 No.1273 はじめのζ関数
ユーザー tanimani364tanimani364
提出日時 2021-04-01 20:16:03
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 403 bytes
コンパイル時間 386 ms
コンパイル使用メモリ 86,724 KB
実行使用メモリ 81,776 KB
最終ジャッジ日時 2023-08-22 23:01:54
合計ジャッジ時間 13,648 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 276 ms
81,396 KB
testcase_01 AC 272 ms
81,404 KB
testcase_02 AC 270 ms
81,704 KB
testcase_03 AC 270 ms
81,664 KB
testcase_04 AC 270 ms
81,496 KB
testcase_05 AC 272 ms
81,560 KB
testcase_06 AC 268 ms
81,712 KB
testcase_07 AC 266 ms
81,640 KB
testcase_08 AC 258 ms
81,424 KB
testcase_09 AC 260 ms
81,456 KB
testcase_10 AC 255 ms
81,688 KB
testcase_11 AC 264 ms
81,664 KB
testcase_12 AC 261 ms
81,632 KB
testcase_13 AC 256 ms
81,616 KB
testcase_14 AC 280 ms
81,368 KB
testcase_15 AC 282 ms
81,776 KB
testcase_16 AC 260 ms
81,428 KB
testcase_17 AC 263 ms
81,376 KB
testcase_18 AC 273 ms
81,484 KB
testcase_19 AC 271 ms
81,752 KB
testcase_20 WA -
testcase_21 AC 258 ms
81,744 KB
testcase_22 AC 257 ms
81,716 KB
testcase_23 AC 260 ms
81,408 KB
testcase_24 AC 260 ms
81,768 KB
testcase_25 AC 270 ms
81,460 KB
testcase_26 AC 254 ms
81,452 KB
testcase_27 AC 257 ms
81,716 KB
testcase_28 AC 262 ms
81,736 KB
testcase_29 AC 264 ms
81,536 KB
testcase_30 AC 264 ms
81,536 KB
testcase_31 AC 266 ms
81,628 KB
testcase_32 AC 285 ms
81,536 KB
testcase_33 AC 287 ms
81,492 KB
testcase_34 AC 271 ms
81,740 KB
testcase_35 AC 286 ms
81,580 KB
testcase_36 AC 274 ms
81,540 KB
testcase_37 AC 279 ms
81,672 KB
testcase_38 AC 268 ms
81,584 KB
testcase_39 AC 276 ms
81,560 KB
testcase_40 AC 274 ms
81,640 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)

		res/=i-1
		ans+=res

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