結果
| 問題 |
No.420 mod2漸化式
|
| コンテスト | |
| ユーザー |
shooooo
|
| 提出日時 | 2019-11-30 17:52:01 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 260 bytes |
| コンパイル時間 | 143 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 11,008 KB |
| 最終ジャッジ日時 | 2024-11-21 03:23:07 |
| 合計ジャッジ時間 | 2,430 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 35 |
ソースコード
import math x=int(input()) if x>=32: print(0) elif x==0: print(1) print(0) else: ans=math.factorial(31)//math.factorial(x)//math.factorial(31-x) ans2=(2**31-1)*(math.factorial(30)//math.factorial(x-1)//math.factorial(31-x)) print(ans) print(ans2)
shooooo