結果
| 問題 | No.420 mod2漸化式 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-11-28 19:56:58 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 199 bytes |
| 記録 | |
| コンパイル時間 | 382 ms |
| コンパイル使用メモリ | 20,824 KB |
| 実行使用メモリ | 25,848 KB |
| 最終ジャッジ日時 | 2026-05-22 18:31:31 |
| 合計ジャッジ時間 | 8,073 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)