Compare commits
No commits in common. "5e1de21a229372553b558feb57426471e265a73e" and "de7d6714114104db78b1d141d83bc8b1d0e615db" have entirely different histories.
5e1de21a22
...
de7d671411
2
main.cpp
2
main.cpp
@ -12,7 +12,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef TEMP_MIN
|
#ifndef TEMP_MIN
|
||||||
#define TEMP_MIN 10
|
#define TEMP_MIN 0.01
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
|||||||
3
sa.hpp
3
sa.hpp
@ -65,8 +65,7 @@ class box {
|
|||||||
auto swappable11(box &other, int capacity) -> bool {
|
auto swappable11(box &other, int capacity) -> bool {
|
||||||
long long choice1 = items.top();
|
long long choice1 = items.top();
|
||||||
long long choice2 = other.items.top();
|
long long choice2 = other.items.top();
|
||||||
return choice1 != choice2 &&
|
return choice1 + other.fullness - choice2 <= capacity &&
|
||||||
choice1 + other.fullness - choice2 <= capacity &&
|
|
||||||
choice2 + fullness - choice1 <= capacity;
|
choice2 + fullness - choice1 <= capacity;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user