Loading

【笔记】关同步流 cin/cout

在 freopen 后面加:

ios::sync_with_stdio(false);
cin.tie(0),cout.tie(0);

注意用 '\n' 代替 endl,不要与 scanf 和 printf 混用。

保留小数格式:

cout<<fixed<<setprecision(10);

后接输出保留 10 位小数。

posted @ 2025-12-12 22:25  Seqfrel  阅读(2)  评论(0)    收藏  举报