結果
| 問題 |
No.420 mod2漸化式
|
| ユーザー |
JunOnuma
|
| 提出日時 | 2017-05-22 18:01:48 |
| 言語 | Python2 (2.7.18) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 208 bytes |
| コンパイル時間 | 75 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 7,168 KB |
| 最終ジャッジ日時 | 2024-09-19 10:18:21 |
| 合計ジャッジ時間 | 1,378 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 34 RE * 1 |
ソースコード
def combi(n,r):
if r == 0:
return 1
return combi(n,r-1) * (n-r+1) / r
x = int(raw_input())
if x >= 32:
print 0,0
else:
a = combi(31,x)
b = (2**31-1) * combi(30,x-1)
print a,b
JunOnuma