我的测试数据通过了,却拿不到分数
查看原帖
我的测试数据通过了,却拿不到分数
1489613
AuroBreeze楼主2024/10/23 11:30
#include <iostream>
using namespace std;

int main() {
    const int num = 250;
    unsigned long long nums;
    int x,n;
    cin >> x >> n;
    for (n;n>0;n--,x++){
        if(x==6 || x==7){
            if(x==7){
                x=0;
            }
            continue;
        }
        nums += num;
    }
    std::cout << nums;

    return 0;
}

我使用的两个测试数据

3 10
2000
7 543543
97061250
2024/10/23 11:30
加载中...