結果
| 問題 |
No.929 よくあるボールを移動するやつ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-03 11:00:47 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 67 ms / 2,000 ms |
| コード長 | 113 bytes |
| コンパイル時間 | 318 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 8,060 KB |
| 最終ジャッジ日時 | 2024-11-26 10:46:54 |
| 合計ジャッジ時間 | 1,567 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 12 |
ソースコード
#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