社区讨论

86求看

P2433【深基1-2】小学数学 N 合一参与者 3已保存回复 5

讨论操作

快速查看讨论及其快照的属性,并进行相关操作。

当前回复
5 条
当前快照
1 份
快照标识符
@lo2f5y43
此快照首次捕获于
2023/10/23 12:50
2 年前
此快照最后确认于
2023/10/23 12:50
2 年前
查看原帖
CPP
#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;
        cout<<12<<endl;
        cout<<2;
    } else if (T == 4) {
        cout<<166.667;
    } else if (T == 5) {
        cout<<(260+220)/(12+20);
    } else if (T == 6) {
        cout<<sqrt(pow(6,2)+pow(9,2));
    } else if (T == 7) {
        cout<<110<<endl;
        cout<<90<<endl;
        cout<<0;
    } else if (T == 8) {
        cout<<pi*10<<endl;
        cout<<pi*25<<endl;
        cout<<(4/3*1.0)*pi*125;
    } 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;
        cout<<"R";
    } 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;
    }
    return 0;
}

回复

5 条回复,欢迎继续交流。

正在加载回复...