結果
| 問題 |
No.420 mod2漸化式
|
| ユーザー |
H20
|
| 提出日時 | 2020-12-17 10:17:37 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 224 bytes |
| コンパイル時間 | 181 ms |
| コンパイル使用メモリ | 81,920 KB |
| 実行使用メモリ | 52,352 KB |
| 最終ジャッジ日時 | 2024-09-20 06:55:11 |
| 合計ジャッジ時間 | 2,804 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 31 WA * 4 |
ソースコード
from math import factorial
k = int(input())
if k==0 or k>31 :
print(0)
exit()
a = factorial(31) // factorial(k) // factorial(31 - k)
b = (2**31-1)
c = factorial(30) // factorial(k-1) // factorial(31 - k)
print(a,b*c)
H20