Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #define int long long
  3. using namespace std;
  4. #define IOS ios::sync_with_stdio(0); cin.tie(0);
  5. int const maxn = 3e5 + 7;
  6.  
  7. int l,r;
  8.  
  9. inline void input() {
  10. cin>>l>>r;
  11. }
  12.  
  13. inline void solve() {
  14. if (l<=2){
  15. l=3;
  16. }
  17. cout<<(r-l+1);
  18. return;
  19.  
  20. }
  21.  
  22. int32_t main() {
  23. IOS
  24. input();
  25. solve();
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement