結果

問題 No.1273 はじめのζ関数
ユーザー kozykozy
提出日時 2020-10-30 21:35:06
言語 Python3
(3.10.1 + numpy 1.22.3 + scipy 1.8.0)
結果
AC  
実行時間 391 ms / 2,000 ms
コード長 131 bytes
コンパイル時間 68 ms
使用メモリ 9,772 KB
最終ジャッジ日時 2023-02-21 11:16:24
合計ジャッジ時間 18,547 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
使用メモリ
testcase_00 AC 368 ms
9,748 KB
testcase_01 AC 385 ms
9,712 KB
testcase_02 AC 391 ms
7,980 KB
testcase_03 AC 364 ms
7,876 KB
testcase_04 AC 383 ms
9,704 KB
testcase_05 AC 373 ms
7,764 KB
testcase_06 AC 370 ms
7,836 KB
testcase_07 AC 379 ms
9,728 KB
testcase_08 AC 368 ms
8,036 KB
testcase_09 AC 383 ms
9,712 KB
testcase_10 AC 369 ms
7,948 KB
testcase_11 AC 374 ms
8,016 KB
testcase_12 AC 388 ms
7,912 KB
testcase_13 AC 366 ms
7,968 KB
testcase_14 AC 391 ms
9,768 KB
testcase_15 AC 385 ms
8,016 KB
testcase_16 AC 384 ms
9,756 KB
testcase_17 AC 386 ms
9,744 KB
testcase_18 AC 391 ms
7,848 KB
testcase_19 AC 386 ms
9,700 KB
testcase_20 AC 16 ms
7,664 KB
testcase_21 AC 385 ms
7,988 KB
testcase_22 AC 380 ms
9,772 KB
testcase_23 AC 385 ms
9,632 KB
testcase_24 AC 385 ms
7,776 KB
testcase_25 AC 382 ms
9,756 KB
testcase_26 AC 385 ms
7,836 KB
testcase_27 AC 389 ms
9,712 KB
testcase_28 AC 381 ms
7,828 KB
testcase_29 AC 382 ms
9,740 KB
testcase_30 AC 379 ms
7,828 KB
testcase_31 AC 387 ms
7,772 KB
testcase_32 AC 377 ms
7,980 KB
testcase_33 AC 379 ms
7,896 KB
testcase_34 AC 378 ms
7,772 KB
testcase_35 AC 381 ms
7,760 KB
testcase_36 AC 381 ms
7,828 KB
testcase_37 AC 379 ms
7,836 KB
testcase_38 AC 385 ms
7,792 KB
testcase_39 AC 383 ms
7,988 KB
testcase_40 AC 375 ms
7,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
s=1000000
ans=0
if N==2:
  print(s)
  exit()
for i in range(1,s):
    ans+=(1/i)*((i+1)**(-(N-1)))
print(int(ans*s))
0