Run ID | 作者 | 问题 | 语言 | 测评结果 | 分数 | 时间 | 内存 | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|---|
6051 | JiangGuangrui | 【深基2.例8】再分肥宅水 | C++ | 通过 | 100 | 0 MS | 784 KB | 214 | 2020-08-22 13:29:02 |
#include <iostream> #include <cstdio> using namespace std; int main() { int n,a; float t,s; cin >> t >> n; a = 2 * n; s = t / (n * 1.0); printf("%.3f\n",s); cout << a <<endl; return 0; }