結果
| 問題 | No.420 mod2漸化式 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-03 16:01:08 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 181 bytes |
| 記録 | |
| コンパイル時間 | 566 ms |
| コンパイル使用メモリ | 20,956 KB |
| 実行使用メモリ | 75,068 KB |
| 最終ジャッジ日時 | 2026-05-28 06:09:59 |
| 合計ジャッジ時間 | 10,538 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 |
| other | TLE * 13 -- * 22 |
ソースコード
from scipy.special import comb
x = int(input())
count = comb(31, x, exact = True)
if x != 0:
sum = 2147483647 * comb(31, x-1, exact = True)
else:
sum = 0
print(count, sum)