Ad
Code
Diff
  • unsigned long long div2(unsigned long long a){
      return a/2;
    }
    • unsigned long long div2(unsigned long long a){
    • unsigned long long ans{};
    • while (ans * 2 + 1 < a) ans++;
    • return ans;
    • return a/2;
    • }