求助!第13题为什么总WA
查看原帖
求助!第13题为什么总WA
760690
Chalage_2010楼主2022/7/29 17:58

本人用的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;
}
2022/7/29 17:58
加载中...