結果

問題 No.420 mod2漸化式
ユーザー ntuda
提出日時 2024-02-02 21:45:59
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 1,000 ms
コード長 92 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 81,588 KB
実行使用メモリ 53,712 KB
最終ジャッジ日時 2024-09-28 10:42:55
合計ジャッジ時間 2,876 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 35
権限があれば一括ダウンロードができます

ソースコード

diff #

from math import comb
x = int(input())
a = comb(31,x)
b = (2**31-1) * a * x // 31
print(a,b)
0