結果
問題 |
No.420 mod2漸化式
|
ユーザー |
|
提出日時 | 2016-09-11 17:22:17 |
言語 | Python2 (2.7.18) |
結果 |
RE
|
実行時間 | - |
コード長 | 249 bytes |
コンパイル時間 | 542 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-11-17 03:31:42 |
合計ジャッジ時間 | 2,020 ms |
ジャッジサーバーID (参考情報) |
judge5 / 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