07 2018 档案
摘要:UPD:艰难补完了感觉有几个题好像没什么人写还是简单讲两句吧 1001 Absolute 快乐积分每一天 好像大家都是不定积分的但是因为我比较傻逼不会那种容斥一样的东西所以考虑写一个定积分 假设前i个区间的概率密度函数积出来是一个分段函数g(x),第i+1个区间是一个水平线,记为$h
阅读全文
摘要:1001 Maximum Multiple 谈学姐写的 1 #include<bits/stdc++.h> 2 using namespace std; 3 long long n,i,j,k,s,t,ans,T; 4 long long a[1000010]; 5 int main() 6 { 7
阅读全文
摘要:这个拆队比赛的题目质量优秀过头了吧? A.Maximum Element In A Stack 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 5e6 + 10; 4 typedef long long LL;
阅读全文
摘要:25: Tourist 暴力 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long LL; 4 string str[111]; 5 vector<string> v; 6 map<string, int> mp;
阅读全文
摘要:A.序列 1 #include <bits/stdc++.h> 2 using namespace std; 3 typedef long long LL; 4 const LL mod = 1e9 + 7; 5 6 int main() { 7 int n, p; 8 scanf("%d %d",
阅读全文
摘要:A.队列Q 随便on 1 #include <bits/stdc++.h> 2 using namespace std; 3 const int maxn = 1e5 + 10; 4 int q[maxn], f[maxn], b[maxn], vis[maxn]; 5 stack<int> F,
阅读全文