結果
問題 |
No.420 mod2漸化式
|
ユーザー |
👑 ![]() |
提出日時 | 2025-08-02 15:13:31 |
言語 | PyPy3 (7.3.15) |
結果 |
RE
|
実行時間 | - |
コード長 | 382 bytes |
コンパイル時間 | 253 ms |
コンパイル使用メモリ | 82,188 KB |
実行使用メモリ | 67,020 KB |
最終ジャッジ日時 | 2025-08-02 15:13:35 |
合計ジャッジ時間 | 3,499 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 34 RE * 1 |
ソースコード
""" https://yukicoder.me/problems/no/420 xbit立っている数の集合 """ # normal nCr def nCr_Plane(n,r): if n < r or n < 0: return 0 import math return math.factorial(n) // (math.factorial(n-r) * math.factorial(r)) x = int(input()) if x > 31: print (0,0) else: cnt = nCr_Plane(31,x) s = nCr_Plane(30,x-1) * (2**31-1) print (cnt,s)