Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1459cf3

Browse files
authored
Update 3.cpp
1 parent1e134b7 commit1459cf3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎15/3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ int main() {
1818
// 이진 탐색 수행을 위해 정렬 수행
1919
sort(arr.begin(), arr.end());
2020

21-
int start =1;// 가능한 최소 거리 차이(min gap)
22-
int end = arr[n -1] - arr[0];// 가능한 최대 거리 차이(max gap)
21+
int start =1;// 가능한 최소 거리(min gap)
22+
int end = arr[n -1] - arr[0];// 가능한 최대 거리(max gap)
2323
int result =0;
2424

2525
while (start <= end) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp