随笔分类 - 比赛题解
摘要:hdu6438-hdu6447 左转官方题解 1001Buy and Resell(思维) i点和它后面的谁交易不影响答案,如样例一中的(10-1 + 9-2)=(9-1 + 10-2) 考虑第 i 天是否卖出,一定是在左边列的前 i - 1 个中找一个还未配对的最小值和其配对进行买卖获益最大,如果
阅读全文
摘要:ac代码:
阅读全文
摘要:一般n比较大,状态数m(这里10)比较小时适合状态压缩成0...1到111..1这样1<<m个状态!!! 也就是暴力枚举所有子集~ ac代码:
阅读全文
摘要:1001(hdu5948 Thickest Burger ) src:http://acm.hdu.edu.cn/showproblem.php?pid=5948 #include <iostream> #include<cstdlib> #include<algorithm> #include<c
阅读全文
摘要:L1-009(N个数求和 字符串) src:https://www.patest.cn/contests/gplt/L1-009 ac代码: #include<bits/stdc++.h> #define FOR(i,a,b) for(int i=a;i<=b;i++) using namespac
阅读全文

浙公网安备 33010602011771号