結果
問題 | No.929 よくあるボールを移動するやつ |
ユーザー |
![]() |
提出日時 | 2025-03-14 01:39:13 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 77 ms / 2,000 ms |
コード長 | 126 bytes |
コンパイル時間 | 371 ms |
コンパイル使用メモリ | 82,524 KB |
実行使用メモリ | 95,192 KB |
最終ジャッジ日時 | 2025-03-14 01:39:15 |
合計ジャッジ時間 | 2,561 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 12 |
ソースコード
n=int(input())b=list(map(int,input().split()))y=[]for i in range(n):y+=[i]*b[i]print(sum(abs(y[i]-i) for i in range(n)))