求助 0分
查看原帖
求助 0分
512765
chazi_1620楼主2022/4/30 21:13

萌新求助:为什么我怎么改都是0分

#include <bits/stdc++.h>
using namespace std;
int main()
{
    long long x, n;
    cin >> x >> n;
    long long swim = 0;
    for(int i = 1; i <= 7; i++)
    {
        if(x == i)
        {
            for(int i = 1; i <= n; i++)
            {
                if(x <= 5)
                {
                    swim += 250;
                    x++;
                }
                if(x == 7)
                {
                    swim += 0;
                    x == 1;
                }
            }
            cout << swim << endl;
            return 0;
        }
    }
    return 0;
}

求助各位大佬

2022/4/30 21:13
加载中...