結果

問題 No.567 コンプリート
ユーザー kohei2019kohei2019
提出日時 2022-02-11 13:30:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 193 bytes
コンパイル時間 351 ms
コンパイル使用メモリ 87,020 KB
実行使用メモリ 71,784 KB
最終ジャッジ日時 2023-09-09 14:44:12
合計ジャッジ時間 2,333 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,700 KB
testcase_01 AC 67 ms
71,556 KB
testcase_02 AC 66 ms
71,784 KB
testcase_03 AC 72 ms
71,696 KB
testcase_04 AC 69 ms
71,588 KB
testcase_05 AC 69 ms
71,712 KB
testcase_06 AC 68 ms
71,700 KB
testcase_07 AC 68 ms
71,512 KB
testcase_08 AC 69 ms
71,512 KB
testcase_09 AC 69 ms
71,508 KB
testcase_10 AC 69 ms
71,296 KB
testcase_11 AC 67 ms
71,440 KB
testcase_12 AC 68 ms
71,556 KB
testcase_13 AC 68 ms
71,564 KB
testcase_14 AC 64 ms
71,428 KB
testcase_15 AC 67 ms
71,468 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N = int(input())
p1 = (1/6)**(N)
p2 = (1/3)**(N)-2*p1
p3 = (1/2)**(N)-3*p2-3*p1
p4 = (2/3)**(N)-4*p3-6*p2-4*p1
p5 = (5/6)**(N)-5*p4-10*p3-10*p2-5*p1
p6 = 1-6*p5-15*p4-20*p3-15*p2-6*p1
print(p6)
0