Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|---|
47193 | 杨中琦 | 行李托运 | C++ | Accepted | 100 | 0 MS | 260 KB | 185 | 2022-07-14 11:55:58 |
#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); }