fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main(){
  5. ios_base::sync_with_stdio(false); cin.tie(nullptr); cout.tie(nullptr);
  6. long long a,b; cin >> a >> b;
  7. cout << b/3 - (a - 1)/ 3;
  8. return 0;
  9. }
Success #stdin #stdout 0s 5284KB
stdin
Standard input is empty
stdout
Standard output is empty