肯定是个佬就做过.....编译器给我判结果错误(WA)...想不明白来请教
代码贴上....
#include <iostream>
using namespace std;
int main(){
int H,i=0,run=0;
cin>>H;
if(H>0&&H<1000000000){
while(H-run>10){
run=run+5;i++;
}
i++;
cout<<i<<endl;
}
return 0;
}
看 就是这么水....但是怎么就错了呢???