結果
| 問題 |
No.420 mod2漸化式
|
| ユーザー |
AEn
|
| 提出日時 | 2022-05-14 15:48:09 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 94 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 62,432 KB |
| 最終ジャッジ日時 | 2024-07-23 01:35:42 |
| 合計ジャッジ時間 | 4,521 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | -- * 35 |
ソースコード
from scipy.special import comb
x = int(input())
if x > 30:
print(0, 0)
else:
cnt = comb(31, x, exact=True)
res = 0
for i in range(31):
res += 2**i * comb(30, x-1, exact=True)
print(cnt, res)
AEn