1523.cpp (123B)
1 class Solution { 2 public: 3 int countOdds(int low, int high) { return (high - low) / 2 + ((low % 2) | (high % 2)); } 4 };