大佬们帮忙看看,WA了2.3两个点,蟹蟹了;
查看原帖
大佬们帮忙看看,WA了2.3两个点,蟹蟹了;
558667
Keyzee楼主2021/10/4 20:08
#include<bits/stdc++.h>
using namespace std;

int main(){
	int x,n;
	cin>>x>>n;
	int k=n;
	if(x==6&&n==1){
		int p=0;
		cout<<p;
	}else{
		for(int i=0;i<n-1;i++){
			x++;
			if(x==7){
				k=k-2;
			}
			if(x==8){
				x=1;
			} 
		}
		if(x==6){
			cout<<(k-1)*250;
		}else{
			cout<<k*250;
		}
	}
	
	return 0;
}
2021/10/4 20:08
加载中...