結果

問題 No.1408 Nice Dice Game
ユーザー ayaoniayaoni
提出日時 2021-02-26 22:43:39
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 574 bytes
コンパイル時間 235 ms
コンパイル使用メモリ 82,468 KB
実行使用メモリ 59,144 KB
最終ジャッジ日時 2024-04-10 13:22:07
合計ジャッジ時間 2,468 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 31 ms
52,764 KB
testcase_01 AC 31 ms
53,948 KB
testcase_02 AC 32 ms
52,796 KB
testcase_03 AC 31 ms
52,552 KB
testcase_04 AC 32 ms
52,488 KB
testcase_05 AC 33 ms
52,196 KB
testcase_06 AC 32 ms
52,624 KB
testcase_07 AC 31 ms
53,288 KB
testcase_08 AC 30 ms
52,220 KB
testcase_09 AC 30 ms
52,552 KB
testcase_10 AC 32 ms
52,160 KB
testcase_11 AC 31 ms
53,196 KB
testcase_12 AC 31 ms
53,096 KB
testcase_13 AC 36 ms
52,556 KB
testcase_14 AC 35 ms
52,428 KB
testcase_15 AC 34 ms
53,376 KB
testcase_16 AC 37 ms
52,596 KB
testcase_17 AC 36 ms
52,472 KB
testcase_18 AC 33 ms
52,768 KB
testcase_19 AC 35 ms
52,828 KB
testcase_20 AC 33 ms
53,132 KB
testcase_21 AC 33 ms
52,152 KB
testcase_22 AC 34 ms
52,904 KB
testcase_23 AC 34 ms
52,688 KB
testcase_24 AC 35 ms
52,472 KB
testcase_25 AC 34 ms
53,148 KB
testcase_26 AC 34 ms
53,000 KB
testcase_27 AC 35 ms
52,272 KB
testcase_28 AC 35 ms
52,768 KB
testcase_29 AC 34 ms
52,756 KB
testcase_30 AC 34 ms
52,564 KB
testcase_31 AC 33 ms
52,408 KB
testcase_32 AC 35 ms
52,124 KB
testcase_33 AC 33 ms
52,384 KB
testcase_34 AC 31 ms
53,132 KB
testcase_35 AC 31 ms
52,696 KB
testcase_36 AC 34 ms
59,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**7)
def I(): return int(sys.stdin.readline().rstrip())
def MI(): return map(int,sys.stdin.readline().rstrip().split())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LI2(): return list(map(int,sys.stdin.readline().rstrip()))
def S(): return sys.stdin.readline().rstrip()
def LS(): return list(sys.stdin.readline().rstrip().split())
def LS2(): return list(sys.stdin.readline().rstrip())


N = I()

ans = 0
for i in range(1,100000):
    a = pow(i,N+2)
    if a > 10**10:
        break
    ans += 1/a

print(ans)
0