这是我的程序:
#include<iostream> using namespace std; int main(){ const double pi=3.14; int h,r,s; cin>>h>>r; s=pi*r*r*h; if(20000%s!=0){ cout<<20000/s+1; }else{ cout<<20000/s; } }
只得了28分!
大家能告诉我哪里错了?