spnooyseed
spnooyseed
全部文章
分类
2019 icpc Nanchang(1)
2019 icpc yinchuan(3)
2019icpc Nanjing(3)
2019暑假8月份(13)
2019暑假牛客补题(2)
2019牛客多校训练--第一场补题(1)
2019牛客多校训练-第一场补题(1)
Atcoder(4)
CF(2)
dp(1)
hash(1)
Loj(1)
python(1)
upc补题(7)
分层最短路(1)
搜索(1)
数学一本通-数论(7)
数学一本通组合数学(2)
数据结构(6)
数论(2)
数论 -- 类扩展欧几里得(1)
最小生成树(1)
最短路(4)
未归档(5)
板子(5)
树状数组(1)
模板(7)
每日一题(1)
牛客(1)
规律题(1)
题解(1)
归档
标签
去牛客网
登录
/
注册
spnooyseed的博客
全部文章
(共88篇)
D - Manga Market 思维加01背包
Social Infrastructure Information Systems Division, Hitachi Programming Contest 2020 并且, 其中的a如果不等于0 , 那么肯定a >= 1 , 如果在t 时间访问完ai 那么下一个访问完花费时间是 ( t ...
2020-03-09
0
450
E - Divisible Substring AtCoder Beginner Contest 158
abcd % p = ( a * 1000 % p + b * 100 % p + c * 10 % p + d * 1 % p ) % p #include <bits/stdc++.h> using namespace std ; int a[10100] ; int main...
2020-03-08
0
502
两圆相交板子
vector<Pair> calc(double x1 , double y1 , double r1 , double x2 , double y2 , double r2) { x1-=x2,y1-=y2; double S=x1*x1+y1*y1,a=(S+r2*r2-r...
2020-03-06
0
322
高精度求组合数
#include <iostream> #include <vector> using namespace std; const int N = 5500 ; int prime[N] , sum[N] , tot; bool st[N]; void get_prime(in...
2020-03-06
0
378
lucass定理
#include<iostream> using namespace std; typedef long long LL; int n,p; int qmi(int a,int k) { int res=1; while(k) { if(k&...
2020-03-06
0
311
康托展开与康托逆展开
#include <bits/stdc++.h> using namespace std ; //返回数组a中当下顺序的康拖映射 typedef unsigned long long ll ; ll b[30] ; //对前 10 个自然数(0 ~ 9)的阶乘存入表 //以免去对其额外的...
2020-03-06
0
337
FFT变换
// luogu-judger-enable-o2 #include<iostream> #include<cstdio> #include<cmath> using namespace std; const int MAXN=1e7+10; inline int...
2020-03-05
0
451
Codeforces Round #625 Div. 1 Problem C
Problem C - World of Darkraft: Battle for Azathoth Roma is playing a new expansion for his favorite game World of Darkraft. He made a new characte...
2020-03-02
0
347
E.Multiply Pollard_rho质因数分解
2019 icpc xuzhou 思路很简单, 但是这个Pollard_rho的模板要选好, 不然不是wa 就是 tle ,我太难了 #include <cstdio> #include <cstdlib> #include <ctime> #include &...
2019-12-09
0
291
G.Eating Plan
Bob is hungry now and he needs to eat some food. Alice puts nn dishes of food in front of him, numbered from 11 to nn. Alice tells him that he can onl...
2019-12-09
0
356
首页
上一页
1
2
3
4
5
6
7
8
9
下一页
末页