Skip to content

Commit

Permalink
fix: homoint: result may very long
Browse files Browse the repository at this point in the history
  • Loading branch information
guimc233 committed Feb 23, 2024
1 parent 8a175a1 commit 244c6df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/kotlin/ltd/guimc/lgzbot/utils/HomoIntUtils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1069,14 +1069,14 @@ object HomoIntUtils {
var temp1 = 0
for (i in 1..<num) {
for (j in 0..<a.size) {
if (a[j].toLong() == i) {
if (a[j].toLong() == num - i) {
flag = 1
temp1 = i.toInt()
break
}
}
if (flag == 1) {
temp1 = i.toInt()
temp1 = (num - i).toInt()
break
}
}
Expand Down

0 comments on commit 244c6df

Please sign in to comment.