結果
| 問題 |
No.3027 f-列とh-列
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-02-21 21:27:22 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 136 ms / 2,000 ms |
| コード長 | 522 bytes |
| コンパイル時間 | 298 ms |
| コンパイル使用メモリ | 82,608 KB |
| 実行使用メモリ | 86,384 KB |
| 最終ジャッジ日時 | 2025-02-21 21:27:30 |
| 合計ジャッジ時間 | 4,718 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
import collections,sys,math,functools,operator,itertools,bisect,heapq,decimal,string,time,random
#sys.setrecursionlimit(10**9)
#sys.set_int_max_str_digits(0)
#input = sys.stdin.readline
n = int(input())
a = list(map(int,input().split()))
#alist = []
#s = input()
#n,m = map(int,input().split())
#for i in range(n):
# alist.append(list(map(int,input().split())))
b = [0 for i in range(n+1)]
for i in range(n+1):
j = n-i
for k in range(j+1):
b[~k] += a[i] * (-1)**(j-k) * math.comb(j,k)
print(*b)