摘要:
好吧,在几天一直做水题,找找手感,过两天开刷难题。#include#include#include#include#includeusing namespace std;const int MAXN = 5010;short int dp[2][MAXN];int main(){ int n;... 阅读全文
摘要:
思路:二分答案,时间复杂度O(nlgn).若个数为x,那么算出这种情况下提供的水管的最大值和最小值与n比较即可,注意x个分离器需要减去x-1个水管。#include#include#include#include#include#define LL long long intusing namesp... 阅读全文