結果

問題 No.420 mod2漸化式
ユーザー ssmkzkssmkzk
提出日時 2019-04-03 16:03:41
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
AC  
実行時間 344 ms / 1,000 ms
コード長 181 bytes
コンパイル時間 93 ms
コンパイル使用メモリ 10,532 KB
実行使用メモリ 88,020 KB
最終ジャッジ日時 2023-09-08 07:06:57
合計ジャッジ時間 11,681 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 344 ms
45,448 KB
testcase_01 AC 217 ms
45,540 KB
testcase_02 AC 218 ms
45,352 KB
testcase_03 AC 218 ms
45,456 KB
testcase_04 AC 214 ms
45,572 KB
testcase_05 AC 218 ms
45,436 KB
testcase_06 AC 212 ms
45,436 KB
testcase_07 AC 211 ms
45,480 KB
testcase_08 AC 217 ms
45,400 KB
testcase_09 AC 217 ms
45,396 KB
testcase_10 AC 214 ms
45,368 KB
testcase_11 AC 211 ms
45,212 KB
testcase_12 AC 214 ms
45,336 KB
testcase_13 AC 216 ms
45,236 KB
testcase_14 AC 207 ms
45,204 KB
testcase_15 AC 211 ms
45,332 KB
testcase_16 AC 208 ms
45,416 KB
testcase_17 AC 213 ms
45,228 KB
testcase_18 AC 214 ms
45,272 KB
testcase_19 AC 209 ms
45,216 KB
testcase_20 AC 211 ms
45,320 KB
testcase_21 AC 212 ms
45,380 KB
testcase_22 AC 209 ms
45,368 KB
testcase_23 AC 209 ms
45,400 KB
testcase_24 AC 212 ms
45,280 KB
testcase_25 AC 211 ms
45,488 KB
testcase_26 AC 213 ms
45,380 KB
testcase_27 AC 217 ms
45,384 KB
testcase_28 AC 213 ms
45,288 KB
testcase_29 AC 212 ms
45,392 KB
testcase_30 AC 210 ms
45,512 KB
testcase_31 AC 213 ms
45,384 KB
testcase_32 AC 212 ms
45,460 KB
testcase_33 AC 216 ms
45,332 KB
testcase_34 AC 210 ms
45,280 KB
testcase_35 AC 213 ms
88,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from scipy.special import comb

x = int(input())
count = comb(31, x, exact = True)
if x != 0:
    sum = 2147483647 * comb(30, x-1, exact = True)
else:
    sum = 0

print(count, sum)
0