結果

問題 No.420 mod2漸化式
ユーザー Navier_BoltzmannNavier_Boltzmann
提出日時 2023-06-17 13:54:15
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 113 ms / 1,000 ms
コード長 289 bytes
コンパイル時間 1,405 ms
コンパイル使用メモリ 86,864 KB
実行使用メモリ 73,212 KB
最終ジャッジ日時 2023-09-07 10:30:08
合計ジャッジ時間 6,097 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 105 ms
72,752 KB
testcase_01 AC 104 ms
72,928 KB
testcase_02 AC 104 ms
72,892 KB
testcase_03 AC 105 ms
73,160 KB
testcase_04 AC 103 ms
72,628 KB
testcase_05 AC 103 ms
72,740 KB
testcase_06 AC 107 ms
72,740 KB
testcase_07 AC 102 ms
72,732 KB
testcase_08 AC 103 ms
72,828 KB
testcase_09 AC 103 ms
72,856 KB
testcase_10 AC 104 ms
72,832 KB
testcase_11 AC 105 ms
73,004 KB
testcase_12 AC 105 ms
72,844 KB
testcase_13 AC 108 ms
72,964 KB
testcase_14 AC 109 ms
72,836 KB
testcase_15 AC 107 ms
72,740 KB
testcase_16 AC 109 ms
72,832 KB
testcase_17 AC 102 ms
72,876 KB
testcase_18 AC 106 ms
72,928 KB
testcase_19 AC 106 ms
72,968 KB
testcase_20 AC 108 ms
72,724 KB
testcase_21 AC 113 ms
73,076 KB
testcase_22 AC 107 ms
72,832 KB
testcase_23 AC 109 ms
72,856 KB
testcase_24 AC 108 ms
72,748 KB
testcase_25 AC 106 ms
72,840 KB
testcase_26 AC 108 ms
73,212 KB
testcase_27 AC 105 ms
72,920 KB
testcase_28 AC 110 ms
72,860 KB
testcase_29 AC 109 ms
73,164 KB
testcase_30 AC 107 ms
73,168 KB
testcase_31 AC 106 ms
72,856 KB
testcase_32 AC 103 ms
73,080 KB
testcase_33 AC 107 ms
72,844 KB
testcase_34 AC 106 ms
72,656 KB
testcase_35 AC 105 ms
72,832 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()
if x==0:
    print(1,0)
    exit()
s = math.comb(31,x)
t = math.comb(30,x-1)*((1<<31)-1)
print(s,t)
0