int i;cin>>i;if(i<60)cout<<"BAD";else if(i<80&&i>=60)cout<<"OK"else if(i>=80&&i<=100)cout<<"GOOD";
基本正确