Advertisement
Saleh127

UVA 12869/UVa live 6847

Nov 24th, 2020
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define ll long long
  4. #define test int t; cin>>t; for(int cs=1;cs<=t;cs++)
  5. ll nZero(ll x)
  6. {
  7. return x/5;
  8. }
  9. int main()
  10. {
  11. ios_base::sync_with_stdio(0);
  12. cin.tie(0);cout.tie(0);
  13.  
  14.  
  15. ll l,r;
  16. while(cin>>l>>r && l && r)
  17. {
  18. cout<<1+nZero(r)-nZero(l)<<endl;
  19. }
  20.  
  21. return 0;
  22. }
  23.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement