自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 HDU 4992 Primitive Roots原根

彩蛋Problem DescriptionWe say that integer x, 0 < x < n, is a primitive root modulo n if and only if the minimum positive integer y which makes xy = 1 (mod n) true is φ(n) .Here φ(n) is an arith...

2019-08-13 14:41:08 134

原创 CF 17D. Notepad 欧拉降幂

彩蛋题目:D. Notepadtime limit per test2 secondsmemory limit per test64 megabytesinputstandard inputoutputstandard outputNick is attracted by everything unconventional. He doesn't lik...

2019-08-11 13:43:57 120

原创 HDU4747 MEX(dp ,递推)

传送门#include<bits/stdc++.h>#define ll long longusing namespace std;const int Max=200010;int a[Max],mex[Max],pre[Max];int main(){ int n; while(cin>>n&&n){ fill(...

2019-07-25 10:51:40 191

原创 Working out CodeForces - 429B

彩蛋B. Working outtime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputSummer is coming! It's time for Iahub and Iahubina to work out...

2019-07-25 10:27:08 94

原创 Problem about GCD 素数筛+miller rabbin+精度 hdu 4910

彩蛋Problem about GCDTime Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1128Accepted Submission(s): 289Problem DescriptionGiven intege...

2019-07-25 10:20:36 124

原创 大素数判断 miller rabbin 粗略讲解

关于二次探测定理的运用可以采用随机数的方法去判定也可以采用5-7个素数的方法去判定。

2019-07-25 10:08:47 223

原创 最小生成树,最短路径 及其不正经指南

#include<iostream> #include<cstdio> #include<algorithm> using namespace std; int main(){ ios::sync_with_stdio(false); cout<<"形成了肌肉记忆"<<endl; //不...

2019-04-07 23:20:24 434

原创 map水题Codehorses T-shirts——CodeForces - 1000A

map 由{键,值}对组成的集合,内部实现是一颗红黑树好啦,具体自行百度。说起来实在惭愧,map我并不会,只会一个操作就是赋值,还只是一种赋值方法Codehorses has just hosted the second Codehorses Cup. This year, the same as the previous one, organizers are giving T-shir...

2019-03-12 21:10:10 208

原创 心中有树(雾)

首先我们知道树表示了一种一对多的结构,二叉树就是一种一对二的结构;其次我们知道遍历树的方法除了层序遍历,利用根和左右孩子的关系有六种遍历方式。但是人为规定左孩子到右孩子的顺序就只有三种遍历方式,根据根的位置分别是前序遍历(根左右),中序遍历(左根右),后序遍历(左右根)。那么就可以很清楚的知道前序+中序–&amp;amp;gt;后序,或者后序+中序–&amp;amp;gt;前序;以前序+中序–&amp;amp;gt;后序为例:大概思路就...

2019-03-07 15:42:39 175 2

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除