結果

問題 No.999 てん vs. ほむ
ユーザー minr
提出日時 2020-03-31 17:40:14
言語 Python3
(3.13.1 + numpy 2.2.1 + scipy 1.14.1)
結果
WA  
実行時間 -
コード長 153 bytes
コンパイル時間 89 ms
コンパイル使用メモリ 12,800 KB
実行使用メモリ 32,752 KB
最終ジャッジ日時 2024-06-24 21:27:57
合計ジャッジ時間 3,522 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2 WA * 1
other AC * 2 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

from collections import deque
N = int(input())
A = deque(list(map(int,input().split())))
s = 0
while len(A) > 0:
    s += abs(A.pop() - A.pop())
print(s)
0