結果

問題 No.420 mod2漸化式
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-17 13:52:28
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 255 bytes
コンパイル時間 508 ms
コンパイル使用メモリ 87,044 KB
実行使用メモリ 80,696 KB
最終ジャッジ日時 2023-09-07 10:29:46
合計ジャッジ時間 6,437 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 102 ms
73,032 KB
testcase_01 AC 111 ms
72,740 KB
testcase_02 AC 105 ms
72,944 KB
testcase_03 AC 104 ms
72,916 KB
testcase_04 AC 100 ms
72,756 KB
testcase_05 AC 99 ms
72,852 KB
testcase_06 RE -
testcase_07 AC 101 ms
72,884 KB
testcase_08 AC 102 ms
73,112 KB
testcase_09 AC 101 ms
72,916 KB
testcase_10 AC 105 ms
72,916 KB
testcase_11 AC 104 ms
73,040 KB
testcase_12 AC 102 ms
72,884 KB
testcase_13 AC 100 ms
72,852 KB
testcase_14 AC 100 ms
72,920 KB
testcase_15 AC 107 ms
72,912 KB
testcase_16 AC 103 ms
72,904 KB
testcase_17 AC 104 ms
72,912 KB
testcase_18 AC 103 ms
72,932 KB
testcase_19 AC 102 ms
72,920 KB
testcase_20 AC 103 ms
72,996 KB
testcase_21 AC 102 ms
73,244 KB
testcase_22 AC 99 ms
72,920 KB
testcase_23 AC 104 ms
72,772 KB
testcase_24 AC 109 ms
72,852 KB
testcase_25 AC 101 ms
72,948 KB
testcase_26 AC 101 ms
72,964 KB
testcase_27 AC 100 ms
72,988 KB
testcase_28 AC 100 ms
72,968 KB
testcase_29 AC 104 ms
73,040 KB
testcase_30 AC 105 ms
72,980 KB
testcase_31 AC 104 ms
73,256 KB
testcase_32 AC 104 ms
72,852 KB
testcase_33 AC 103 ms
73,224 KB
testcase_34 AC 103 ms
72,968 KB
testcase_35 AC 103 ms
72,852 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import *
from itertools import *
from functools import *
from heapq import *
import sys,math
input = sys.stdin.readline

x = int(input())
if x>31:
    print(0,0)
    exit()

s = math.comb(31,x)
t = math.comb(30,x-1)*((1<<31)-1)
print(s,t)
0