This commit is contained in:
Shazid Mashrafi 2023-08-06 13:09:13 +06:00
parent 176048239a
commit fc5215fb5a

View File

@ -43,11 +43,12 @@ void solve()
return; return;
} }
sort(all(v)); sort(all(v));
for(int i=1; i<n; i++) fro(n)
{ {
if(v[i]-v[i-1]>1) if(v[i]-v[i-1]>1)
{ {
no; no;
return; return;
} }
} }