提出 #36961486


ソースコード 拡げる

n=int(input())
s=list(map(int,input().split()))
a=s[0]
ans=[]
ans.append(a)
for i in range(1,len(s)):
    A=s[i]-a
    a=s[i]
    ans.append(A)
print(*ans)
    

提出情報

提出日時
問題 B - Inverse Prefix Sum
ユーザ tanaka_takashi
言語 Python (3.8.2)
得点 200
コード長 170 Byte
結果 AC
実行時間 21 ms
メモリ 9064 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 200 / 200
結果
AC × 2
AC × 13
セット名 テストケース
Sample sample_01.txt, sample_02.txt
All min.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, sample_01.txt, sample_02.txt
ケース名 結果 実行時間 メモリ
min.txt AC 17 ms 8844 KiB
random_01.txt AC 17 ms 9036 KiB
random_02.txt AC 17 ms 8944 KiB
random_03.txt AC 20 ms 8888 KiB
random_04.txt AC 17 ms 8848 KiB
random_05.txt AC 18 ms 8848 KiB
random_06.txt AC 17 ms 8948 KiB
random_07.txt AC 18 ms 8848 KiB
random_08.txt AC 21 ms 8940 KiB
random_09.txt AC 17 ms 8948 KiB
random_10.txt AC 18 ms 9032 KiB
sample_01.txt AC 18 ms 8960 KiB
sample_02.txt AC 17 ms 9064 KiB