結果

問題 No.1273 はじめのζ関数
ユーザー 吉野
提出日時 2022-11-16 15:36:35
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 191 ms
コンパイル使用メモリ 82,004 KB
実行使用メモリ 67,008 KB
最終ジャッジ日時 2024-09-17 11:46:04
合計ジャッジ時間 2,896 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 40
権限があれば一括ダウンロードができます

ソースコード

diff #

import math

x=int(input())
if x==2:
  print(1000000)
  exit(0)
ans=0
for i in range(2,1000000000000):
  if pow(i,x-1)*(i-1)>10000000000000000:
    break
  A=pow(i,x-1)*(i-1)
  ans+=1000000/A

print(math.floor(ans))
0