Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
13195 | 祝易涛 | 【基础题】长方形面积 | C++ | Accepted | 2 MS | 808 KB | 182 | 2021-05-25 17:25:13 |
#include <bits/stdc++.h> using namespace std; int main() { float a,b,c,s; cin>>a>>b; s=a*b; c=2*a+2*b; printf("%.2f",s); cout<<endl; printf("%.2f",c); return 0; }