結果
| 問題 |
No.420 mod2漸化式
|
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-15 15:29:35 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 256 bytes |
| コンパイル時間 | 202 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 18,120 KB |
| 最終ジャッジ日時 | 2024-09-14 01:49:02 |
| 合計ジャッジ時間 | 4,240 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 33 TLE * 1 -- * 1 |
ソースコード
def list_product(v,n):
p = 1
for i in range(v-n+1,v+1):
p *= i
return p
def bitsum(n):
return list_product(31,n)//list_product(n,n)
n = int(input())
comb = bitsum(n)
sum1 = (2**31)-1
sum2 = (comb * sum1 * n)//31
print(comb,sum2)
Konton7