摘要: 这一道题,我用的是O(n^2)的算法,仔细分析一下可以发现,用O(n^3)的算法很危险,所以我建议用O(n^2)的算法#include#includeusing namespace std;int y[705],x[705];int f[705][705];int p... 阅读全文
posted @ 2017-10-22 15:51 c201904 阅读(103) 评论(0) 推荐(0)
摘要: The famous Korean internet company has provided an internet-based photo service whichallows The famous Korean internet company users t... 阅读全文
posted @ 2017-10-22 15:02 c201904 阅读(105) 评论(0) 推荐(0)
摘要: 这道题,我们一开始就能想到O(n^5)的算法---n^4找矩阵的两个对顶角,n用来查找。但因为n#include#includeusing namespace std;struct wo{int x,y;};int cmp(wo a,wo b){return a.xm... 阅读全文
posted @ 2017-10-22 14:46 c201904 阅读(80) 评论(0) 推荐(0)
摘要: https://www.luogu.org/problem/show?pid=P3930这道题,其实完全不需要你去你用什么高级算法,其实需要你的,是耐心地爆搜,像2015年斗地主一样了,但有一个坑,我没注意到,于是得了80分,那就是:因为进攻方是骑士,所以进攻方是不可... 阅读全文
posted @ 2017-10-22 13:55 c201904 阅读(322) 评论(0) 推荐(0)