求助!第13题为什么总WA

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

wanghaozhe @ 2022-07-29 17:58:05

本人用的C++

#include<bits/stdc++.h>
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 << 3<<endl<<12<<endl<<2;
    } else if (T == 4) {
        cout<<166.667;
    } else if (T == 5) {
        cout<<(220+260)/(20+12);
    } else if (T == 6) {
        cout<<sqrt(6*6+9*9);
    } else if (T == 7) {
        printf("%d\n%d\n%d",110,90,0);
    } else if (T == 8) {
        cout<<31.41593<<endl<<78.539825<<endl<<523.5988333333333<<endl;
    } else if (T == 9) {
        cout<<22;
    } else if (T == 10) {
        cout<<9;
    } else if (T == 11) {
        cout<<1.0*100/3;
    } else if (T == 12) {
        cout<<13<<endl<<"R";
    } else if (T == 13) {
        cout<<int(pow(4/3*3.141593*(4*4*4+10*10*10),1.0*1/3));
    } else if (T == 14) {
        cout<<50;
    }
    return 0;
}

by wanghaozhe @ 2022-07-29 18:01:32

各位 不用了 已经解决了

呃呃呃呃呃呃呃呃呃


by nannuke @ 2022-08-11 16:16:40

怎的解决?我还卡在这里呢


by JI_CI @ 2022-10-04 21:20:40

怎么解决的


|