我写的比**大部分**的tj要简单很多,但也A了,这是为什么?
是数据不够强吗?球dalao解答:
```cpp
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a, b, weekend = 0;
cin >> a >> b;
for (int i = 1; i <= b; i++)
{
if (a > 5) weekend++;
a = (a - 1) % 7 + 2;
a = (a - 1) % 7 + 1;
}
cout << (b - weekend) * 250;
return 0;
}
```
by 11514zbs @ 2024-03-10 07:31:53
@[11514zbs](/user/1125106) 你这不就是单纯进行每天模拟吗,没问题的
by elpsconr @ 2024-04-11 11:29:26
@
SmallMing
@[11514zbs](/user/1125106)
```cpp
#include <bits/stdc++.h>
using namespace std;
int main(){
long long x,n,km=0;
cin>>x>>n;
for(int i=x;i<=x+n-1;++i){
if(i%7==6||i%7==0){
continue;
}
km+=250;
}
cout<<km;
return 0;
}
```
by zhongjiarun666 @ 2024-05-12 17:12:43