Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
51573 | 张思存 | 保留3位小数的浮点数 | C++ | Accepted | 1 MS | 248 KB | 149 | 2024-09-22 21:13:17 |
#include<bits/stdc++.h> int main() { float n; std::cin >> n; std::cout << std::fixed << std::setprecision(3) << n; return 0; }