大佬们帮我看看代码哪里出错了好吗?本人蒟蒻查不出来
查看原帖
大佬们帮我看看代码哪里出错了好吗?本人蒟蒻查不出来
505281
D_M_楼主2021/8/10 20:44
#include <bits/stdc++.h>
using namespace std;
const double pi=3.141593;
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.666";
    } else if (T == 5) {
        cout << (220+260)/(20+12);
    } else if (T == 6) {
        cout<<sqrt(6*6+9*9);
    } else if (T == 7) {
        cout << 110 << endl << 90 << endl << 0;
    } else if (T == 8) {
        cout<<pi*10<<endl<<pi*25<<endl<<4/3*pi*125<<endl;
    } else if (T == 9) {
       cout<<((((1+1)*2)+1*2)+1)*2;
    } else if (T == 10) {
        cout<<((((1+1)*2)+1*2)+1)*2;
    } else if (T == 11) {
        cout<<1.0*100/3;
    } else if (T == 12) {
        cout<<(int)('M'-'A')+1<<endl<<(char)(18+'A'-1);
    } else if (T == 13) {
        cout<<(int)(pow(4/3*pi*(4*4*4+10*10*10),1.0*1/3));
    } else if (T == 14) {
    	cout<<50<<endl;
    }
    return 0;
}
2021/8/10 20:44
加载中...