![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
杂
clay_2791
不愿随波逐流,迟早掀风起浪
展开
-
板子
板子合集原创 2019-08-06 21:34:34 · 103 阅读 · 0 评论 -
快速读/出
inline int read() { int x=0; bool flag=false; char ch=getchar(); while(ch<'0'||ch>'9'){if(ch=='-')flag=1; ch=getchar();} while(ch>='0'&&ch<='9'){x=(x<<3...原创 2019-08-06 18:07:20 · 86 阅读 · 0 评论 -
文件读入与读出
freopen("D:\\in.txt","r",stdin); freopen("D:\\out.txt","w",stdout); fclose(stdin); fclose(stdout);原创 2019-08-06 16:05:53 · 257 阅读 · 0 评论 -
关于坐标旋转
有些题,可以将坐标旋转; (x,y) —>(xcosA+ysinA,ycosA-xsinA)原创 2019-08-06 11:18:07 · 159 阅读 · 0 评论 -
离散化模板
#include <vector> vector<int>v; for(int i=1;i<=n;i++) { cin>>a[i]; v.push_back(a[i]); } sort(v.begin(),v.end()); for(int i=1;i<=n;i++) ...原创 2019-08-07 08:11:04 · 80 阅读 · 0 评论 -
洛谷刷题
即将要刷的题 背包DP:P4158,U79699,P1284,P1156,UVA11003,P4141,P3188,P4095,P1941,P2252,P1018,P1281,P1854,P1216,P1233,P2308,P1435 树形DP: P1040,P2016,P2018,P1122,P1877,P1273,P3304,P2585,P3360,P4084,P2986,P3177,SP14...原创 2019-08-20 16:49:34 · 784 阅读 · 0 评论