結果

問題 No.970 数列変換マシン
ユーザー 💕💖💞💕💖💞
提出日時 2020-03-21 12:24:00
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 91 ms
コンパイル使用メモリ 10,700 KB
実行使用メモリ 19,852 KB
最終ジャッジ日時 2023-08-23 11:09:48
合計ジャッジ時間 4,276 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 AC 169 ms
19,820 KB
testcase_04 AC 165 ms
19,664 KB
testcase_05 AC 168 ms
19,660 KB
testcase_06 AC 151 ms
9,976 KB
testcase_07 WA -
testcase_08 WA -
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 AC 18 ms
8,388 KB
testcase_13 AC 17 ms
7,888 KB
testcase_14 WA -
testcase_15 AC 15 ms
7,872 KB
testcase_16 WA -
testcase_17 AC 16 ms
7,880 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 16 ms
7,772 KB
testcase_22 AC 16 ms
7,848 KB
testcase_23 WA -
testcase_24 AC 15 ms
7,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

n = int(input())
ys = list(map(lambda x:int(x), input().split()))
size = len(ys)
for i in range(size):
    c0 = (0 + i)%size
    c1 = (1 + i)%size
    c2 = (-1 + i)%size
    print(- ys[c0] + ys[c2] + ys[c1], end=" ")  
print()
0