Skip to content

Commit

Permalink
remove unused cout
Browse files Browse the repository at this point in the history
  • Loading branch information
zyr17 committed Feb 12, 2024
1 parent b5d1089 commit d12c4d5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/algo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -783,24 +783,19 @@ namespace SR{
for (auto i : rd.pts[0])
delta_pt += i;
int total_number = rd.pts[0].size();
std::cout << rd.pts[0].size() << ' ' << rd.pts[1].size() << ' ' << rd.pts[2].size() << ' ' << rd.pts[3].size() << ' ' << rd.pts[4].size() << std::endl;
delta_pt /= total_number;
std::vector<int> numbers;
std::cout << 12321 << ' ' << delta_pt << std::endl;
for (int i = 1; i <= 4; i ++ ) {
numbers.push_back(rd.pts[i].size());
if (i != 4)
for (auto j : rd.pts[i]) {
assert(j == rd.pts[i][0]); // all pt should be same
}
}
std::cout << 32123 << std::endl;
std::cout << numbers[0] << ' ' << numbers[1] << ' ' << numbers[2] << ' ' << numbers[3] << std::endl;
std::discrete_distribution<> dist(numbers.begin(), numbers.end());
std::mt19937 gen(19260817);
std::vector<double> sim_res;
double sim_total = 0;
std::cout << 22222 << std::endl;
for (int i = sim_time; i -- ; ){
std::vector<int> counts(4, 0);
for (int j = total_number; j -- ; )
Expand All @@ -814,13 +809,11 @@ namespace SR{
sim_res.push_back(nowpt + delta_pt);
sim_total += nowpt + delta_pt;
}
std::cout << 44444 << std::endl;
std::sort(sim_res.begin(), sim_res.end());
stablerank = (sim_total / sim_time - rd.roombase) / rd.roomdelta;
CI = std::make_pair(sim_res[sim_time * 0.025], sim_res[sim_time * 0.975]);
CI.first = (CI.first - rd.roombase) / rd.roomdelta;
CI.second = (CI.second - rd.roombase) / rd.roomdelta;
std::cout << stablerank << ' ' << CI.first << ' ' << CI.second << std::endl;
}

void addgamedata(int nroom, int round, int rank, int pt, int point){
Expand Down

0 comments on commit d12c4d5

Please sign in to comment.