結果

問題 No.929 よくあるボールを移動するやつ
ユーザー pluto77pluto77
提出日時 2019-12-03 11:00:47
言語 Python2
(2.7.18)
結果
AC  
実行時間 68 ms / 2,000 ms
コード長 113 bytes
コンパイル時間 355 ms
コンパイル使用メモリ 6,724 KB
実行使用メモリ 7,444 KB
最終ジャッジ日時 2023-08-17 13:54:18
合計ジャッジ時間 2,095 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
5,940 KB
testcase_01 AC 11 ms
5,928 KB
testcase_02 AC 11 ms
5,848 KB
testcase_03 AC 12 ms
6,024 KB
testcase_04 AC 12 ms
5,852 KB
testcase_05 AC 12 ms
6,024 KB
testcase_06 AC 11 ms
5,948 KB
testcase_07 AC 34 ms
6,672 KB
testcase_08 AC 68 ms
7,392 KB
testcase_09 AC 67 ms
7,304 KB
testcase_10 AC 65 ms
7,336 KB
testcase_11 AC 66 ms
7,236 KB
testcase_12 AC 66 ms
7,376 KB
testcase_13 AC 65 ms
7,444 KB
testcase_14 AC 66 ms
7,304 KB
testcase_15 AC 65 ms
7,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#yuki929

n=int(raw_input())
p=map(int,raw_input().split())
f=0
res=0
for x in p:
 f+=x-1
 res+=abs(f)
print res
0