fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main() {
  6. long long A, B, C;
  7.  
  8. cin >> A >> B >> C;
  9.  
  10. long long result = B / C - (A - 1) / C;
  11.  
  12. cout << result << endl;
  13.  
  14. return 0;
  15. }
  16.  
Success #stdin #stdout 0.01s 5284KB
stdin
Standard input is empty
stdout
0