結果
| 問題 |
No.420 mod2漸化式
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-28 20:01:41 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 199 bytes |
| コンパイル時間 | 407 ms |
| コンパイル使用メモリ | 82,176 KB |
| 実行使用メモリ | 97,792 KB |
| 最終ジャッジ日時 | 2024-11-28 20:01:47 |
| 合計ジャッジ時間 | 4,874 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 31 RE * 3 TLE * 1 |
ソースコード
import math
def comb(n, x):
return math.factorial(n) // math.factorial(x) // math.factorial(n-x)
x = int(input())
n = 31
a = comb(n, x)
b = comb(30, x-1)
c = (pow(2, 31) - 1) * b
print(a, c)