93分,离成功只差一步!
查看原帖
93分,离成功只差一步!
988327
zouzhuohao楼主2023/8/2 13:47

小学数学,算一算就可以!

上代码!

#include<bits/stdc++.h>
using namespace std;
const double pi=3.141593;
int main(){
    int n;
    cin>>n;
    if(n==1){
        cout<<"I love Luogu!";
    }else if(n==2){
        cout<<2+4<<" "<<10-2-4;
    }else if(n==3){
        cout<<14/4<<endl;
        cout<<14/4*4<<endl;
        cout<<14-14/4*4;
    }else if(n==4){
        cout<<fixed<<setprecision(3)<<1.0*500/3;
    }else if(n==5){
        cout<<(220+260)/(12+20);
    }else if(n==6){
        cout<<sqrt(36+81);
    }else if(n==7){
        cout<<100+10<<endl;
        cout<<100+10-20<<endl;
        cout<<0;
    }else if(n==8){
		cout<<2*pi*5<<endl;
		cout<<5*5*pi<<endl;
		cout<<4.0/3*pi*5*5*5<<endl;
    }else if (n==9){
        cout<<((((1+1)*2)+1*2)+1)*2;
    }else if(n==10){
        cout<<9;
    }else if(n==11){
        cout<<100.0/(8-5);
    }else if(n==12){
        cout<<13<<endl<<"R";
    }else if(n==13){
        cout<<int((pow(4/3*pi*(4*4*4+10*10*10),1.0*1/3)));
    }else if(n==14){
        cout<<50;
    }
    return 0;
}

《真·简单》

13题WA了!

再来!

9题也WA了!

最高成绩:93分!

MD*%^&^%&%&*&*^&^%%&%#^&%&#^#^%#%#&%^&%&#&&%^&&$

SOS!HELP!

2023/8/2 13:47
加载中...