結果
問題 | No.420 mod2漸化式 |
ユーザー |
|
提出日時 | 2016-09-11 18:08:19 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 1,000 ms |
コード長 | 248 bytes |
コンパイル時間 | 388 ms |
コンパイル使用メモリ | 7,040 KB |
実行使用メモリ | 6,400 KB |
最終ジャッジ日時 | 2024-12-24 11:33:08 |
合計ジャッジ時間 | 1,957 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 35 |
ソースコード
#yuki_420import mathx=int(raw_input())if x==0:print 1,0elif x>=32:print 0,0else: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