結果

問題 No.57 ミリオンダイス
ユーザー 村上史弥村上史弥
提出日時 2022-11-04 19:46:30
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
TLE  
実行時間 -
コード長 216 bytes
コンパイル時間 231 ms
コンパイル使用メモリ 10,536 KB
実行使用メモリ 17,596 KB
最終ジャッジ日時 2023-09-25 22:01:34
合計ジャッジ時間 12,617 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 TLE -
testcase_01 -- -
testcase_02 -- -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
ans = 0
cou = 0

for i in range(N, 6 * N + 1):
    cou += 1
    if cou <= 6 * (N - 1):
        n = i - 1
    else:
        n = 6 * N - i + 1
    s = i * n / (6 ** N)
    ans += s
print(round(ans, 2))
0