Thông tin
Số bài đã giải: 0
Performance Points: 0,00 #1280
Active contests: 0/3
Đóng góp: 0
include <bits/stdc++.h>
using namespace std;
long long countSpecial(long long n) { if (n <= 0) return 0; long long a = 0, b = 0; if (n >= 1) a = (n - 1) / 5 + 1; if (n >= 4) b = (n - 4) / 5 + 1; return a + b; }
int main() { ios::syncwithstdio(false); cin.tie(nullptr);
long long L, R;
cin >> L >> R;
cout << countSpecial(R) - countSpecial(L - 1);
return 0;
}