题解 | #单组_保留小数位数#
单组_保留小数位数
https://www.nowcoder.com/practice/a4bccea7f4644fbda1208f8e0d397bab
#include <iostream>
using namespace std;
int main() {
double a;
while (cin >> a) { // 注意 while 处理多个 case
printf("%.3lf",a);
}
}
// 64 位输出请用 printf("%lld")


查看9道真题和解析