結果
| 問題 | No.2486 Don't come next to me |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-09-29 22:10:26 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
WJ
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 188 bytes |
| 記録 | |
| 最終ジャッジ日時 | 2026-08-23 09:51:46 |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
ソースコード
n,m = map(int,input().split()) A = list(map(int,input().split())) ans = 0 for a,na in zip(A,A[1:]): d = na-a-1 num = 1 while d%2 and d > 2: d //= 2 num *= 2 ans += d*num print(ans)