結果
問題 |
No.970 数列変換マシン
|
ユーザー |
![]() |
提出日時 | 2020-01-17 22:09:14 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
TLE
|
実行時間 | - |
コード長 | 435 bytes |
コンパイル時間 | 245 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 31,336 KB |
最終ジャッジ日時 | 2024-06-25 20:37:00 |
合計ジャッジ時間 | 6,904 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 3 |
other | TLE * 1 -- * 21 |
ソースコード
import copy def main(): N = int(input()) double_int = lambda x: int(x) * (N - 1) conversion_y = list(map(double_int, input().split(' '))) result_list = list() for n in range(N): sub_list = copy.copy(conversion_y) a = sub_list.pop(n) sum_list = sum(sub_list) result_list.append((sum_list - a) // 2) print(' '.join(map(str, result_list))) if __name__ == '__main__': main()