ops1211
ops1211
全部文章
未归档
2019寒假ap协会第二周(2)
ap协会第二周(1)
csdn用法(3)
dp(4)
stl(1)
大数运算(1)
寒假备战蓝桥杯(5)
尺取法(2)
带权并查集(1)
并查集(1)
思维(1)
数论(7)
模板(10)
石油大个人训练赛题目集(1)
蓝桥备战模板(1)
题解(3)
归档
标签
去牛客网
登录
/
注册
ops1211的博客
全部文章
/ 未归档
(共31篇)
poj3070 Fibonacci(矩阵快速幂模板)
#include<iostream> using namespace std; typedef long long LL; struct mat{ int m[2][2]; }; mat mul(mat a,mat b){ mat ans; for(int i=0;i<2...
2019-04-21
0
580
Feel Good(单调栈)(一点也不good!)
学了一周,快哭了; 参考博客:https://blog.csdn.net/zuzhiang/article/details/78136480; 我的代码: #include<iostream> #include<stack> #include<algorithm&g...
2019-04-09
0
504
G - A Bug's Life(带权并查集模板题)
#include using namespace std; int f[4000];int r[4000];int flag; int find(int x){ if(x==f[x]) return x; int z=f[x]; f[x]=find(f[x]); f[z]=f[x]; r[x]=(...
2019-03-26
0
450
Asya And Kittens(并查集)(连接)
Asya loves animals very much. Recently, she purchased n kittens, enumerated them from 1 and n and then put them into the cage. The cage consists of on...
2019-03-22
0
579
s-palindrome(回文)
https://www.cnblogs.com/qscqesze/p/5725735.html
2019-03-14
0
460
海港(尺取)(队列)
https://www.luogu.org/problemnew/show/P2058
2019-03-06
0
408
翻硬币
题目标题:翻硬币 小明正在玩一个“翻硬币”的游戏。 桌上放着排成一排的若干硬币。我们用 * 表示正面,用 o 表示反面(是小写字母,不是零)。 比如,可能情形是:**oo***oooo 如果同时翻转左边的两个硬币,则变为:oooo***oooo 现在小明的问题是:如果已知了初始状态和要达到...
2019-01-23
0
434
2013蓝桥杯 【初赛试题】 第39级台阶
小明刚刚看完电影《第39级台阶》,离开电影院的时候,他数了数礼堂前的台阶数,恰好是39级! 站在台阶前,他突然又想着一个问题: 如果我每一步只能迈上1个或2个台阶。先迈左脚,然后左右交替,最后一步是迈右脚,也就是说一共要走偶数步。那么,上完39级台阶,有多少种不同的上法呢? 输出格式: 输...
2019-01-22
0
600
蓝桥杯历届试题之高斯笔记
#include<stdio.h> bool rn(int n){ if(n%4==0&&n%100!=0||n%400==0){ return 1; } else return 0; } int main(){ int yy=1777,mm=4,dd=...
2019-01-22
0
445
PTA 1050 螺旋矩阵
#include<stdio.h> #include<math.h> #include<algorithm> #include<iostream> #include<vector> using namespace std; bool c...
2019-01-10
0
514
首页
上一页
1
2
3
4
下一页
末页