#include<iostream>
using namespace std;
int main(){
int speed,limit,ex;
cin>>speed>>limit;
ex=100.0*(speed-limit)/limit+0.5;
if(ex<10)
cout<<"OK"<<endl;
else if(ex<50)
cout<<"Exceed "<<ex<<"%. Ticket 200"<<endl;
else
cout<<"Exceed "<<ex<<"%. License Revoked"<<endl;
return 0;
}
分支-08. 高速公路超速处罚(15)
时间: 2024-10-15 15:56:43