50pts求调,玄关
查看原帖
50pts求调,玄关
1282570
zxChicken4088楼主2025/2/4 19:54
#include <iostream>
#include <cmath>
using namespace std;

double ans = 8, x;
char c;

int main()
{
    cin >> x;
    x -= 1000; x = ceil(x / 500);
    if (x > 0) ans += 4 * x;
    if (c == 'y') ans += 5;
    cout << ans << endl;
    return 0;
}
2025/2/4 19:54
加载中...