摘要:
//打表 深搜行,所以不需要测验行 题目: http://acm.hdu.edu.cn/showproblem.php?pid=2553 #include<stdio.h> #include<string.h> int n; int ans; int v[55]={0},z[55]={0},c[55 阅读全文
posted @ 2021-06-08 22:12
废柴废柴少女
阅读(48)
评论(0)
推荐(0)
摘要:
题目:https://ac.nowcoder.com/acm/problem/15295 思路: 结构体的id用来记录这个点,不然排序会把点的顺序打乱 排四个序,分别代表上下,左右,正对角线,副对角线 注意排序时遇到相等的,要根据其他坐标来排,例如x相同时,y最小的威胁只有右边,y最大的威胁只有左边 阅读全文
posted @ 2021-06-08 19:36
废柴废柴少女
阅读(61)
评论(0)
推荐(0)
摘要:
//从n个数里面选m个数来组合 #include<stdio.h> #include<string.h> const int maxn=1e5; int a[maxn],v[maxn],n,m; void dfs(int x) { if(x>m) { for(int i=1;i<m;i++) pri 阅读全文
posted @ 2021-06-08 18:18
废柴废柴少女
阅读(285)
评论(0)
推荐(0)
浙公网安备 33010602011771号