求助!只对了后三个!!!
查看原帖
求助!只对了后三个!!!
937490
liujunxi1234楼主2023/6/7 21:07

先面是我的代码

#include<bits/stdc++.h>
using namespace std;
int main(){
    double r,h,v,tong;
    double PI=3.14;
    cin>>h>>r;
    v=PI*r*r*h;
    if(20000%(int)v!=0)
    tong=20000/(int)v+1;
    else tong=20000/(int)v;
    cout<<tong;
    return 0;
}

求各位大佬点评一下!!!

2023/6/7 21:07
加载中...