Skip to content

Commit

Permalink
增加消重和递增检查
Browse files Browse the repository at this point in the history
  • Loading branch information
z16166 committed Feb 23, 2024
1 parent 93e0e0e commit 8866420
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ReciprocalSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ bool check(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i
a[8] = i9;
a[9] = i10;

for (int k = 8; k >= 0; --k)
{
if (i10 <= a[k])
return false;
}

mpz_t t;
mpz_init(t);
mpz_set_ui(t, 1);
Expand Down

0 comments on commit 8866420

Please sign in to comment.