# Try to Win, C++ #include<iostream> using namespace std; int main() { int td, dl, tp, pl; if (pl == 1) { cout << dl; return 0; } else { int sn = dl / pl; int si = td / tp; if (sn > si + 1) { cout << sn - 1; return 0; } if (sn = si + 1) { cout << sn; return 0; } if (sn == si) { cout << sn; return 0; } if (sn < si) { cout << si - 1; return 0; } } return 0; } Trying to win by covering the fact that,when share initial is less than share now, then everyone may try to bid the share now, while he could get the lowest bid by just 1.