結果
| 問題 | No.420 mod2漸化式 |
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2017-05-22 18:00:57 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 164 bytes |
| 記録 | |
| コンパイル時間 | 395 ms |
| コンパイル使用メモリ | 77,196 KB |
| 最終ジャッジ日時 | 2025-12-03 23:48:25 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 32 RE * 3 |
ソースコード
def combi(n,r):
if r == 0:
return 1
return combi(n,r-1) * (n-r+1) / r
x = int(raw_input())
a = combi(31,x)
b = (2**31-1) * combi(30,x-1)
print a,b
JunOnuma