結果
| 問題 | No.420 mod2漸化式 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-09-11 17:22:17 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 249 bytes |
| 記録 | |
| コンパイル時間 | 149 ms |
| コンパイル使用メモリ | 77,076 KB |
| 最終ジャッジ日時 | 2025-12-03 21:28:32 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 31 RE * 4 |
ソースコード
#yuki_420 import math x=int(raw_input()) if x==0: print 1,0 elif x>=32: print 0,0 else: res1=math.factorial(31)/math.factorial(31-x)/math.factorial(x) res2=math.factorial(30)/math.factorial(31-x)/math.factorial(x-1) print res1,(2**31-1)*res2