Skip to content

Commit 7d75547

Browse files
committed
wip
1 parent 8401f54 commit 7d75547

File tree

6 files changed

+55
-5
lines changed

6 files changed

+55
-5
lines changed

src_ordenacao_imperador_algoritmo1/main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ void swap(vector<Civilization> &v, int x, int y) {
1212
}
1313

1414
bool mustSwap(const Civilization &c1, const Civilization &c2) {
15-
if (c1.getDistance() > c2.getDistance()) return true;
16-
else if (c1.getDistance() < c2.getDistance()) return false;
15+
if (c1.getDistance() < c2.getDistance()) return true;
16+
else if (c1.getDistance() > c2.getDistance()) return false;
1717
else {
1818
if (c1.getSize() > c2.getSize()) return true;
1919
else return false;
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
bDSGcZIaKq 715 969366
2+
LpElaojxaF 715 864609
3+
KOkLTrvdMu 715 840337
4+
ibYDhGlHzM 715 830427
5+
wwtbyStoDA 715 823399
6+
tTXmWAgmYH 715 799979
7+
qslREMheCu 715 798784
8+
KnbSzMzPwW 715 697292
9+
xpRqoYGcGJ 715 678948
10+
FwUkpQjBnr 715 643962
11+
JEJEQzTIUX 715 611235
12+
NVDOWtumBS 715 536959
13+
aLxfhRCqIp 715 519942
14+
MFxpjSanWK 715 487824
15+
KZXcBGeDGY 715 434566
16+
OrBVohrvpC 715 431773
17+
KjJHlUcVnz 715 352595
18+
OEUiianXXZ 715 318947
19+
OYWFlPwKOS 715 299086
20+
OSpxYKcOPo 715 268765
21+
vKvGGIqIvN 715 267026
22+
rBxEuvHACu 715 238474
23+
OfQcAwuwXi 715 196891
24+
eirEivyvAa 715 165540
25+
LpHERtAdzy 715 73227
26+
JYYdojqsrw 66804 926743
27+
CeUkDQvPUb 66804 925552
28+
OLfbxiTyeZ 66804 903846
29+
UIWKyflVhA 66804 893225
30+
gVrIvwzugU 66804 793643
31+
rDvdAAKxpB 66804 777022
32+
HuRuUNaezV 66804 768210
33+
SSMqcEYktN 66804 727141
34+
HtZmRgyItd 66804 707371
35+
yMqlPlGaDe 66804 667700
36+
ueckQiHEJV 66804 618270
37+
kcGCukKfWq 66804 574020
38+
cWmoVjYpDf 66804 567283
39+
cVtaKuvjrX 66804 532902
40+
LKbkqxicwT 66804 528992
41+
CNlLGWWKQe 66804 445183
42+
LnVRaCEeUz 66804 198720
43+
dybfwTOIkH 66804 190358
44+
uuCqfpqyWR 66804 169839
45+
JXGfosDsye 66804 113160
46+
KzoXdmDoDd 66804 108753
47+
FLIwCXNjMS 66804 103848
48+
OXwNeawLFx 66804 25641
49+
LjCcTzhwjx 66804 23219
50+
zMzmvUGuGh 66804 17828
-75 Bytes
Binary file not shown.

src_ordenacao_imperador_algoritmo2/main.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ void swap(vector<Civilization> &v, int x, int y) {
1212
}
1313

1414
bool mustSwap(const Civilization &c1, const Civilization &c2) {
15-
if (c1.getDistance() > c2.getDistance()) return true;
16-
else if (c1.getDistance() < c2.getDistance()) return false;
15+
if (c1.getDistance() < c2.getDistance()) return true;
16+
else if (c1.getDistance() > c2.getDistance()) return false;
1717
else {
1818
if (c1.getSize() > c2.getSize()) return true;
1919
else return false;

src_ordenacao_imperador_algoritmo2/run_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
EXEC=$1
22
TMP_OUT=$2
33

4-
for i in {0..5..1}; do
4+
for i in {0..9..1}; do
55
testname=$(printf "%01d" $i)
66
$EXEC < tests/$testname.in > $TMP_OUT
77
if ! diff -qwB tests/$testname.out $TMP_OUT &>/dev/null; then
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)