| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 5179 | zhengxitong | 超市卖电池 | C++ | Accepted | 100 | 0 MS | 256 KB | 214 | 2020-07-27 21:34:42 |
#include<bits/stdc++.h> using namespace std; int main(){ double a,b,c,d; cin>>a; b=2; c=a*b; d=a*b*0.9; if(a<=10) printf("%.1lf",c); if(a>10) printf("%.1lf",d); return 0; }