結果

問題 No.1273 はじめのζ関数
ユーザー marroncastlemarroncastle
提出日時 2020-10-30 23:03:11
言語 PyPy3
(7.9.16)
結果
AC  
実行時間 95 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 523 ms
実行使用メモリ 80,920 KB
最終ジャッジ日時 2023-02-21 15:45:09
合計ジャッジ時間 6,232 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 92 ms
80,564 KB
testcase_01 AC 91 ms
80,740 KB
testcase_02 AC 91 ms
80,568 KB
testcase_03 AC 91 ms
80,512 KB
testcase_04 AC 90 ms
80,828 KB
testcase_05 AC 93 ms
80,700 KB
testcase_06 AC 90 ms
80,712 KB
testcase_07 AC 92 ms
80,588 KB
testcase_08 AC 90 ms
80,896 KB
testcase_09 AC 91 ms
80,640 KB
testcase_10 AC 91 ms
80,640 KB
testcase_11 AC 93 ms
80,712 KB
testcase_12 AC 90 ms
80,572 KB
testcase_13 AC 91 ms
80,680 KB
testcase_14 AC 89 ms
80,884 KB
testcase_15 AC 91 ms
80,684 KB
testcase_16 AC 93 ms
80,644 KB
testcase_17 AC 90 ms
80,572 KB
testcase_18 AC 91 ms
80,660 KB
testcase_19 AC 90 ms
80,656 KB
testcase_20 AC 83 ms
75,428 KB
testcase_21 AC 89 ms
80,712 KB
testcase_22 AC 90 ms
80,572 KB
testcase_23 AC 88 ms
80,740 KB
testcase_24 AC 91 ms
80,568 KB
testcase_25 AC 90 ms
80,920 KB
testcase_26 AC 83 ms
75,868 KB
testcase_27 AC 83 ms
75,488 KB
testcase_28 AC 84 ms
75,788 KB
testcase_29 AC 82 ms
75,492 KB
testcase_30 AC 89 ms
80,552 KB
testcase_31 AC 89 ms
80,632 KB
testcase_32 AC 85 ms
75,772 KB
testcase_33 AC 89 ms
80,552 KB
testcase_34 AC 91 ms
80,916 KB
testcase_35 AC 88 ms
80,676 KB
testcase_36 AC 89 ms
80,672 KB
testcase_37 AC 88 ms
80,604 KB
testcase_38 AC 88 ms
80,620 KB
testcase_39 AC 90 ms
80,660 KB
testcase_40 AC 95 ms
80,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

ans = 0
x = int(input())
if x==2:
  print(1000000)
else:
  for i in range(10**4,x-1,-1):
    for j in range(2,10**8):
      a = pow(j,i)
      if a>10**15:
        break
      ans += 1000000/a
  print(int(ans))
0