#include<bits/stdc++.h> using namespace std; long long a, b, c; int main(){ cin >> a >> b; for(int i = a;i <= b;i++){ if(i % 6 == 0 || i % 8 == 0)c++; } cout << c; return 0; }
我把之前的求助删了,具体原因问@Wh147258