結果

問題 No.420 mod2漸化式
ユーザー AEnAEn
提出日時 2022-05-14 15:48:09
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 219 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,704 KB
実行使用メモリ 80,420 KB
最終ジャッジ日時 2023-09-30 07:20:58
合計ジャッジ時間 11,664 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 422 ms
45,364 KB
testcase_01 AC 214 ms
45,220 KB
testcase_02 AC 219 ms
45,268 KB
testcase_03 AC 216 ms
45,180 KB
testcase_04 AC 218 ms
45,152 KB
testcase_05 AC 219 ms
45,392 KB
testcase_06 AC 223 ms
45,056 KB
testcase_07 AC 222 ms
45,272 KB
testcase_08 AC 224 ms
45,152 KB
testcase_09 AC 221 ms
45,212 KB
testcase_10 AC 228 ms
45,100 KB
testcase_11 AC 228 ms
45,256 KB
testcase_12 AC 222 ms
45,260 KB
testcase_13 AC 228 ms
45,268 KB
testcase_14 AC 230 ms
45,236 KB
testcase_15 AC 226 ms
45,160 KB
testcase_16 AC 227 ms
45,388 KB
testcase_17 AC 225 ms
45,284 KB
testcase_18 AC 224 ms
45,184 KB
testcase_19 AC 223 ms
45,244 KB
testcase_20 AC 229 ms
45,248 KB
testcase_21 AC 219 ms
45,164 KB
testcase_22 AC 222 ms
45,320 KB
testcase_23 AC 224 ms
45,272 KB
testcase_24 AC 225 ms
45,032 KB
testcase_25 AC 227 ms
45,304 KB
testcase_26 AC 229 ms
45,320 KB
testcase_27 AC 228 ms
45,240 KB
testcase_28 AC 225 ms
45,220 KB
testcase_29 AC 221 ms
45,188 KB
testcase_30 AC 230 ms
45,156 KB
testcase_31 AC 221 ms
45,360 KB
testcase_32 WA -
testcase_33 AC 224 ms
45,276 KB
testcase_34 AC 224 ms
45,208 KB
testcase_35 AC 225 ms
80,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.special import comb

x = int(input())
if x > 30:
    print(0, 0)
else:
    cnt = comb(31, x, exact=True)
    res = 0
    for i in range(31):
        res += 2**i * comb(30, x-1, exact=True)
    print(cnt, res)
0