无法ac

P2433 【深基1-2】小学数学 N 合一

King_BabyLove @ 2025-01-11 10:59:24

#include <iostream>
#include <cmath>
#include <iomanip> // for setprecision
using namespace std;

int main() {
    int T;
    cin >> T;
    if (T == 1) {
        cout << "I love Luogu!";
    } else if (T == 2) {
        cout << 2 + 4 << " " << 10 - 2 - 4;
    } else if (T == 3) {
        cout << 14 / 4 << " " << 14 - 14 % 4 << " " << 14 % 4;
    } else if (T == 4) {
        cout << setw(6) << 500 / 3; // Using setw to format the output
    } else if (T == 5) {
        cout << (260 + 220) / (20 + 12);
    } else if (T == 6) {
        cout << fixed << setprecision(6) << sqrt(6 * 6 + 9 * 9); // Control precision
    } else if (T == 7) {
        cout << 100 + 10 << endl << 110 - 20 << endl << 90;
    } else if (T == 8) {
        cout << 3.141593 * 5 * 5;
    } else if (T == 9) {
        cout << (((1 + 1) * 2 + 1) * 2 + 1) * 2;
    } else if (T == 10) {
        cout << 30 * 8 / 10;
    } else if (T == 11) {
        cout << 100 / (8 - 5);
    } else if (T == 12) {
        cout << 13 << " " << "R";
    } else if (T == 13) {
        cout << floor(cbrt(4 * 4 * 3.141593 + 10 * 10 * 3.141593));
    } else if (T == 14) {
        cout << 50;
    }
    return 0;
}

这道一直没ac


|