Skip to content

Commit 8adcfd2

Browse files
authored
Update almost-arithmetic-progression.cpp
1 parent 36d00cb commit 8adcfd2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

978D/almost-arithmetic-progression.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ int main() {
1010
cin >> b[i];
1111
}
1212
if (n < 3) {
13-
cout << 0 << "\n";
13+
cout << 0 << endl;
1414
} else {
1515
vector<int> ans;
1616
bool ok = false;
@@ -55,9 +55,9 @@ int main() {
5555
}
5656
}
5757
if (ok) {
58-
cout << mincnt << "\n";
58+
cout << mincnt << endl;
5959
} else {
60-
cout << -1 << "\n";
60+
cout << -1 << endl;
6161
}
6262
}
6363
return 0;

0 commit comments

Comments
 (0)