結果
| 問題 |
No.2486 Don't come next to me
|
| ユーザー |
ニックネーム
|
| 提出日時 | 2023-09-29 21:27:41 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 286 ms / 2,000 ms |
| コード長 | 186 bytes |
| コンパイル時間 | 340 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 32,416 KB |
| 最終ジャッジ日時 | 2024-07-22 15:26:48 |
| 合計ジャッジ時間 | 4,817 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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)
ニックネーム