摘要:
L.龙之研习 积累多闰年 #include<bits/stdc++.h> using namespace std; #define int long long int k; bool check(__int128 x){ __int128 s=0; for(__int128 i=4;i<=x;i*= 阅读全文
摘要:
L. Stella 简单比较 D. Distributed System 学习积累了差分有头尾两截的情况 #include<bits/stdc++.h> using namespace std; #define ll long long #define int long long const int 阅读全文
摘要:
I. Essentially Different Suffixes 字符串hash或者tire树 #include<bits/stdc++.h> using namespace std; int tr[300010][30];int cnt[300010]; int idx=0;int ans=0; 阅读全文
摘要:
D.Two Divisors #include<bits/stdc++.h> using namespace std; const int N=500010; int n; int a[N]; int b[N];int c[N]; const int V=10000010; int lp[V];in 阅读全文
摘要:
P13594 『GTOI - 1A』Bath 贪心,维护当前区间,当不能合法时就调整一次 #include<bits/stdc++.h> #define ft first #define se second using namespace std; #define int long long con 阅读全文
摘要:
叠砖块 差分 #include<bits/stdc++.h> using namespace std; const int N=1000010; int b[N];int a[N]; int n,k; int main(){ std::ios::sync_with_stdio(false);cin. 阅读全文