結果

問題 No.1273 はじめのζ関数
ユーザー marroncastlemarroncastle
提出日時 2020-10-30 23:03:11
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 88 ms / 2,000 ms
コード長 210 bytes
コンパイル時間 869 ms
コンパイル使用メモリ 87,296 KB
実行使用メモリ 76,724 KB
最終ジャッジ日時 2023-09-29 08:07:41
合計ジャッジ時間 5,409 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 84 ms
76,244 KB
testcase_01 AC 83 ms
76,388 KB
testcase_02 AC 86 ms
76,196 KB
testcase_03 AC 84 ms
76,240 KB
testcase_04 AC 82 ms
76,148 KB
testcase_05 AC 85 ms
76,724 KB
testcase_06 AC 83 ms
76,148 KB
testcase_07 AC 83 ms
76,188 KB
testcase_08 AC 82 ms
76,244 KB
testcase_09 AC 82 ms
76,400 KB
testcase_10 AC 82 ms
76,236 KB
testcase_11 AC 85 ms
76,548 KB
testcase_12 AC 82 ms
76,340 KB
testcase_13 AC 82 ms
76,256 KB
testcase_14 AC 83 ms
76,192 KB
testcase_15 AC 83 ms
76,380 KB
testcase_16 AC 84 ms
76,540 KB
testcase_17 AC 82 ms
76,220 KB
testcase_18 AC 83 ms
76,312 KB
testcase_19 AC 84 ms
76,012 KB
testcase_20 AC 77 ms
71,280 KB
testcase_21 AC 82 ms
76,208 KB
testcase_22 AC 82 ms
76,184 KB
testcase_23 AC 83 ms
76,280 KB
testcase_24 AC 83 ms
76,368 KB
testcase_25 AC 82 ms
76,176 KB
testcase_26 AC 76 ms
71,504 KB
testcase_27 AC 75 ms
71,296 KB
testcase_28 AC 77 ms
71,548 KB
testcase_29 AC 76 ms
71,444 KB
testcase_30 AC 81 ms
76,540 KB
testcase_31 AC 82 ms
76,292 KB
testcase_32 AC 77 ms
71,376 KB
testcase_33 AC 82 ms
76,200 KB
testcase_34 AC 82 ms
76,192 KB
testcase_35 AC 83 ms
76,004 KB
testcase_36 AC 82 ms
75,916 KB
testcase_37 AC 80 ms
76,188 KB
testcase_38 AC 81 ms
75,924 KB
testcase_39 AC 83 ms
76,240 KB
testcase_40 AC 88 ms
76,660 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