题目很简单 直接上代码
代码
#include<bits/stdc++.h>
using namespace std;
int main() {
int L, R;
cin >> L >> R;
int count = 0;
for (int i = L; i <= R; i++) {
if (i % 4 != 2)
count++;
if (i + 4 <= R)
{
i += 4;
count += 3;
}
}
cout << count;
}