摘要:
https://pintia.cn/problem-sets/1596422372713025536 T1全排列裸题,可以用dfs,我喜欢~~next_permutation~~ #include<bits/stdc++.h> using namespace std; int n; int a[10 阅读全文
posted @ 2022-12-01 18:29
wmjlzw1314
阅读(32)
评论(0)
推荐(0)
摘要:
P1199 [NOIP2010 普及组] 三国游戏 最开始写暴力,然后TLE了,发现当我们选定第一个人的时候,第一大肯定被对面抢了,所以我们只能选择第二大,因为第一大谁都拿不到,所以我们最后肯定能比他大。 #include<bits/stdc++.h> using namespace std; in 阅读全文
posted @ 2022-12-01 16:38
wmjlzw1314
阅读(35)
评论(0)
推荐(0)

浙公网安备 33010602011771号