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

运行 ID: 14170

# include <iostream> using namespace std; int main () { int farm,cow; cin>>farm>>cow; if(cow-farm>=100)cout<<10; else if(cow-farm>=10)cout<<7; else if(cow-farm>=10)cout<<5; else if(cow-farm>=200)cout<<20; else if(cow-farm>=300)cout<<30; return 0; }