結果
| 問題 | No.2486 Don't come next to me |
| コンテスト | |
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-09-29 21:27:41 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
AC
|
| 実行時間 | 896 ms / 2,000 ms |
| コード長 | 186 bytes |
| 記録 | |
| コンパイル時間 | 620 ms |
| コンパイル使用メモリ | 20,696 KB |
| 実行使用メモリ | 36,136 KB |
| 最終ジャッジ日時 | 2026-04-03 09:44:30 |
| 合計ジャッジ時間 | 16,171 ms |
|
ジャッジサーバーID (参考情報) |
judge5_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 20 |
ソースコード
n,m = map(int,input().split())
a = list(map(int,input().split()))
ans = n-m
for i in range(m-1):
d = a[i+1]-a[i]; i = 1
while d>2 and d%2==0: ans -= i; i *= 2; d //= 2
print(ans)
ニックネーム