結果
| 問題 | No.420 mod2漸化式 |
| コンテスト | |
| ユーザー |
Konton7
|
| 提出日時 | 2019-05-15 15:27:55 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 252 bytes |
| 記録 | |
| コンパイル時間 | 520 ms |
| コンパイル使用メモリ | 20,828 KB |
| 実行使用メモリ | 23,712 KB |
| 最終ジャッジ日時 | 2026-04-04 09:23:52 |
| 合計ジャッジ時間 | 6,584 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | WA * 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)
print(comb)
sum1 = (2**31)-1
print((comb * sum1 * n)//31)
Konton7