結果
問題 | No.420 mod2漸化式 |
ユーザー |
![]() |
提出日時 | 2019-10-26 10:25:31 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 175 bytes |
コンパイル時間 | 226 ms |
コンパイル使用メモリ | 12,416 KB |
実行使用メモリ | 112,076 KB |
最終ジャッジ日時 | 2024-09-14 02:15:45 |
合計ジャッジ時間 | 41,145 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | TLE * 1 |
other | AC * 5 TLE * 30 |
ソースコード
from scipy.special import comb x = int(input()) if x > 31: print(0, 0) exit() ans1 = comb(31, x, True) ans2 = (2 ** 31 - 1) * comb(30, x - 1, True) print(ans1, ans2)