#include<stdio.h>
int main()
{
int s,l;
double rate;
scanf("%d%d",&s,&l); rate=(double)(s-l)/l*100; if(rate<10) printf("OK\n"); else if(rate<50) printf("Exceed %2.0lf%%. Ticket 200\n",rate); else printf("Exceed %2.0lf%%. License Revoked\n",rate); return 0; }
转载于:https://www.cnblogs.com/Evence/p/4290659.html