随笔分类 - 2019佳木斯集训
摘要:T1 数学数列题,建议无论学不学信奥的同学都做一做 (我用了1个半小时,证明了10分钟推出来的式子) 思路:可以推出式子也可以二分暴力求,easy 1 #include <bits/stdc++.h> 2 using namespace std; 3 double a1,an1,ans; 4 int
阅读全文
摘要:T1 不算很水的数学题,难度中 思路:我们首先发现除了2xy以外剩下的加和必定是个奇数 然后我们发现r是偶数时无解,并且r<=4时无解,其余情况就是 3+一个偶数,显然可以表达所有情况,所以直接输出1和(r-3)/2即可 1 #include <bits/stdc++.h> 2 using name
阅读全文
摘要:T1 数学题,主要就是找规律,不难 思路:我们首先确定a的数量是不会变的,所以我们只能 把a推到最后面,而后我们得出结论在遇到一个b时ans就加上 2的(前面已经遇到的a的数量)次方-1即可,还是很好推的. 1 #include <bits/stdc++.h> 2 using namespace s
阅读全文
摘要:T1 大水题,题里咋说你就咋做,AC 思路:大水题 1 #include <bits/stdc++.h> 2 using namespace std; 3 int t; 4 long long n,ans; 5 int main(){ 6 scanf("%d",&t); 7 while(t--){
阅读全文
摘要:T1 26进制的高精度加法,代码来日再挂 T2 组合数+Lucas定理,挂了 T3 高斯校园,挂了 end;
阅读全文
摘要:T1 一道水题~~ 思路:暴力打表~~~~ 1 #include <bits/stdc++.h> 2 using namespace std; 3 int ans[2510]; 4 int n,anss; 5 int main(){ 6 freopen("qwq.txt","w",stdout);
阅读全文
摘要:T1 本次考试的第一题,比较简单 思路:每出现一个左括号就反复化为红色和蓝色 使红蓝的两种括号会最大化的分开,然后分别测定深度 取max即可 1 #include <bits/stdc++.h> 2 using namespace std; 3 int n,tip,qwq,l,r,ans; 4 ch
阅读全文
摘要:T1 非常裸的大模拟,比较简单 思路:用字符串存储数据,然后从后往前查找直到 找到00,25,50,75中的任意一个,然后再用串长相减 判断一下正反关系,AC. 1 #include <bits/stdc++.h> 2 using namespace std; 3 char a[110]; 4 in
阅读全文