Contest1269 - 【林沐】fixed与setw( )

2025-11-11 15:00:00
2025-11-19 19:00:00
Finished Public Server Current Time:2025-12-16 02:13:18

Contest Information

cout<<fixed<<setprecision(n)<<x; //保留n位小数输出变量x

cout<<setw(10)<<a<<endl;

//给变量a分配10个字符的宽度,所需<域宽,空格填充;所需>域宽,输出所有位。


Problem ID Title AC Submit Num
A练7.3买图书3487
B练13.1竖式计算30238