什么叫做线路太短?我的测试点信息里面这个错了。求助ing

B3720 [语言月赛202303] Out for Dinner B

player300 @ 2023-08-15 15:17:33

#include <bits/stdc++.h>
using namespace std;

int main() {
    long long x;
    char a, b;
    long long q;
    cin >> x;
    cin >> a >> b;
    q = (long long)a + (long long)b;
    if (q == 131 || (q == 132 && (long long)a == (long long)b)) {
        printf("%lld", x * 8 / 10);
    } else if ((q == 132 && (long long)a != (long long)b) || q == 134) {
        printf("%lld", x * 7 / 10);
    } else if (q == 133) {
        printf("%lld", x * 6 / 10);
    }
    return 0;
}

by player300 @ 2023-08-15 16:11:46

@Present_Coming_Time 现在我比较想知道是怎样可以accept。


上一页 |