摘要:
fill(len,len + maxn,INF); len[0] = 0; int ans = 0; REP(i,n){ //cout<<A[i]<<' '; int L = 0,R = ans; while (L < R){ int mid = (L + R + 1) >> 1; if (len[ 阅读全文
摘要:
#include<bits/stdc++.h> using namespace std; struct point{ int x, y, id; point(int a = 0, int b = 0){x = a, y = b; } friend point operator -(point a, 阅读全文
摘要:
题目链接 解题思路:判断形成目标状态所须的最小,最大时间,与标准时间对比,在其区间内,则可行,然后模拟 1 #include<bits/sdtc++.h> 2 using namespace std; 3 #define ll long long 4 int n, k; 5 ll maxk = 0l 阅读全文