提交时间:2021-07-10 19:13:23

运行 ID: 14173

# include <iostream> using namespace std; int main () { int farm,cow; cin>>farm>>cow; if(cow-farm>=100)cout<<10; else if(cow-farm>=200)cout<<20; else if(cow-farm>=300)cout<<30; else if(cow-farm>=400)cout<<40; else if(cow-farm>=500)cout<<50; else if(cow-farm>=600)cout<<60; else if(cow-farm>=700)cout<<70; else if(cow-farm>=800)cout<<80; else if(cow-farm>=900)cout<<90; else if(cow-farm>=1000)cout<<100; else if(cow-farm>=2000)cout<<200; else if(cow-farm>=3000)cout<<300; else if(cow-farm>=4000)cout<<400; else if(cow-farm>=5000)cout<<500; else if(cow-farm>=6000)cout<<600; else if(cow-farm>=7000)cout<<700; else if(cow-farm>=8000)cout<<800; else if(cow-farm>=9000)cout<<900; else if(cow-farm>=10000)cout<<1000; else cout<<5 return 0; }