暴力题解
2025-06-01 09:48:48
发布于:广东
0阅读
0回复
0点赞
#include <iostream>
using namespace std;
int main(){
int x,n,D,Day,p;
D=0;
cin>>x>>n;
p=1;
while (true){
if(x!=6&&x!=7){
D+=250;
}
if(x==7) {x=1;
p+=1;
}
else{
x+=1;
p+=1;
}
if(p>n){
cout<<D;
break;
}
}
return 0;
}
这里空空如也
有帮助,赞一个