Run ID Author Problem Lang Verdict Score Time Memory Code Length Submit Time
46391 杨中琦 行李托运 C++ Accepted 100 0 MS 252 KB 185 2022-07-13 12:56:54

Tests(1/1):


#include<iostream> int main(){ float a,b,c,d; scanf("%f",&a); if(a<=10){ b=a*2.5; } if(a>10){ c=10*2.5; d=a-10; b=c+(d*1.5); } printf("%.1f",b); }


Judgement Protocol: