Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
dnomd343 committed Jul 1, 2020
1 parent a247622 commit a1b02b8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion HRD_group.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class HRD_group {
vector <unsigned long long> solution_case;
vector <unsigned long long> solution_step;
};
vector <unsigned long long> Next_Case_dat; // ´¢´æFind_Next_CaseÕÒµ½µÄ½á¹û
vector <unsigned long long> Next_Case_dat; // 储存Find_Next_Case找到的结果
string File_name_farthest;
string File_name_solution;
bool Output_solution_case;
Expand Down
20 changes: 10 additions & 10 deletions HRD_statistic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,12 +112,12 @@ vector <HRD_statistic::Case_group *> HRD_statistic::Split_Group(vector <unsigned
}
if (groups.size() == 0) {return output_dat;}
for (i = 0; i < groups.size() - 1; i++) {
for (j = 0; j < groups.size() - i - 1; j++) {
if (groups[j].size() < groups[j + 1].size()) {
swap(groups[j], groups[j + 1]);
}
}
}
for (j = 0; j < groups.size() - i - 1; j++) {
if (groups[j].size() < groups[j + 1].size()) {
swap(groups[j], groups[j + 1]);
}
}
}
output_dat.resize(input_dat.size());
for (i = 0; i < groups.size(); i++) {
for (j = 0; j < groups[i].size(); j++) {
Expand Down Expand Up @@ -169,10 +169,10 @@ void HRD_statistic::Output_main_table(string File_name) {
output.close();
}
void HRD_statistic::Find_All_Case() {
unsigned long long i, n, Code;
unsigned int num = 0;
HRD_cal cal;
All_Case.clear();
unsigned long long i, n, Code;
unsigned int num = 0;
HRD_cal cal;
All_Case.clear();
for (n = 0; n < 0xF; n++) {
if (n % 4 == 3) {continue;}
for (i = 0; i <= 0xFFFFFFFF; i++) {
Expand Down

0 comments on commit a1b02b8

Please sign in to comment.