社区讨论

8和13,求解!

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

讨论操作

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

当前回复
6 条
当前快照
1 份
快照标识符
@micoihas
此快照首次捕获于
2025/11/24 13:00
3 个月前
此快照最后确认于
2025/11/24 15:36
3 个月前
查看原帖
CPP
#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<<500.0/3.0;
    } else if (T == 5) {
        cout<<(260+220)/(12+20);
    } else if (T == 6) {
        cout<<sqrt(117);
    } else if (T == 7) {
        cout<<100+10<<endl<<110-20<<endl<<0;
    } else if (T == 8) {
        cout<<2*3.141593*5<<endl<<3.141593*5*5<<endl<<(4/3)*3.141593*5*5*5;
    } else if (T == 9) {
        cout<<22;
    } else if (T == 10) {
        cout<<(15+7.5*10)/10;
    } else if (T == 11) {
        cout<<100.0/(8-5);
    } else if (T == 12) {
        cout<<13<<endl<<"R";
    } else if (T == 13) {
        cout<<(int)317.417;
    } else if (T == 14) {
        cout<<50;
    }
    return 0;
}

回复

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

正在加载回复...