1 条题解

  • 0
    @ 2023-1-17 15:11:41
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	int n, x, s = 0;
    	cin >> x >> n;
    	//从周x开始,周x也要算一天,所以范围到x+n-1号
    	for(int i = x; i <= x+n-1; i++){
    		//7天为一周,周六日休息
    		if(i % 7 != 6 && i % 7 != 0){
    			s += 250;
    		} 
    	} 
    	cout << s << endl;
    	return 0;
    }
    
    
    • 1

    信息

    ID
    465
    时间
    1000ms
    内存
    32MiB
    难度
    3
    标签
    递交数
    56
    已通过
    32
    上传者