Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
1251 龚施宇 行李托运 C++ Accepted 100 0 MS 252 KB 173 2019-10-06 15:06:07

Tests(1/1):


#include<iostream> int main(){ double kg,tyf; scanf("%lf",&kg); if(kg<=10) tyf=kg*2.5; if(kg>10) tyf=10*2.5+(kg-10)*(2.5+1.5); printf("%.1lf",tyf); return 0; }


Judgement Protocol: