摘要: 1.n%a!=0才是整除 2.d=10000 d=1e9 d初始值不能太小 阅读全文
posted @ 2019-12-10 12:35 Tong|Chen 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 1.break; cout;return 0; 2.b+=((c+300-a)/100)*100; c=(c+300-a)%100; %取余 /取整 阅读全文
posted @ 2019-12-10 10:52 Tong|Chen 阅读(70) 评论(0) 推荐(0) 编辑
摘要: 快排只能用结构体,多一维原下标,再stable sort。 阅读全文
posted @ 2019-12-09 20:28 Tong|Chen 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 头文件#include<iomanip> 1.需要补零 cout.setf(ios::fixed); cout<<fixed<<setprecision(需要精确到小数点后几位)<<ans<<endl; 2.不需补零 (1)末尾零被省略 cout<<setprecision(需要精确到小数点后几位) 阅读全文
posted @ 2019-12-02 21:08 Tong|Chen 阅读(4510) 评论(0) 推荐(0) 编辑
摘要: Theatre Square Description: Theatre Square in the capital city of Berland has a rectangular shape with the size n × m meters. On the occasion of the c 阅读全文
posted @ 2019-11-02 02:16 Tong|Chen 阅读(131) 评论(0) 推荐(0) 编辑