Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
5177 yusuorong 超市卖电池 C++ 通过 100 0 MS 248 KB 195 2020-07-27 21:24:42

Tests(1/1):


#include<bits/stdc++.h> using namespace std; int main(){ double a,p; cin>>a; if(a>10){ p=2*a*0.9; printf("%.1lf",p); } else { p=a*2; printf("%.1lf",p); } return 0; }


测评信息: