上一页 1 2 3 4 5 6 ··· 14 下一页
摘要: pydoc 的使用 pydoc 是用来查询一个函数是如何使用的 比如在终端输入python -m pydoc input那么会告诉你input的用法 阅读全文
posted @ 2021-04-18 19:54 loliconsk 阅读(50) 评论(0) 推荐(0)
摘要: #include<iostream> #include<algorithm> using namespace std; const int maxn = 110; typedef long long ll; struct Node { long long x, y; ll gcd(ll a, ll 阅读全文
posted @ 2021-04-14 14:20 loliconsk 阅读(60) 评论(0) 推荐(0)
摘要: #include<iostream> using namespace std; int ysf(int n,int k,int i) { if( i == 1) return (n+k-1)%n; else return (ysf(n-1,k,i-1)+k)%n; } int main(void) 阅读全文
posted @ 2021-04-11 09:47 loliconsk 阅读(44) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<algorithm> #include<iostream> #include<cstring> using namespace std; const int maxn = 1000010; int pri[10000]; bool a[maxn]; 阅读全文
posted @ 2021-04-04 16:25 loliconsk 阅读(83) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<algorithm> #include<iostream> using namespace std; const int maxn = 1e5 + 5; void build(int root, int a[], int sum[], int st 阅读全文
posted @ 2021-04-03 09:58 loliconsk 阅读(40) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<algorithm> using namespace std; int total[500005]; int n,m; int lowbit(int x) { return(~x+1)&x; } void ad 阅读全文
posted @ 2021-04-02 18:42 loliconsk 阅读(49) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<algorithm> #include<iostream> #include<queue> using namespace std; const int maxn = 505; const int INF = 99999; struct node 阅读全文
posted @ 2021-03-26 19:53 loliconsk 阅读(139) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<algorithm> #include<set> #include<map> using namespace std; int a[1000005]; int main(void) { set<int> s; 阅读全文
posted @ 2021-03-14 16:04 loliconsk 阅读(82) 评论(0) 推荐(0)
摘要: #include<cstdio> #include<iostream> #include<algorithm> #include<cstring> #include<cmath> using namespace std; const int maxn = 909529; int a[maxn],re 阅读全文
posted @ 2021-03-09 16:57 loliconsk 阅读(52) 评论(1) 推荐(0)
摘要: dfs: 马的遍历 题目描述 有一个n*m的棋盘(1<n,m<=400),在某个点上有一个马,要求你计算出马到达棋盘上任意一个点最少要走几步 输入格式 一行四个数据,棋盘的大小和马的坐标 输出格式 一个n*m的矩阵,代表马到达某个点最少要走几步(左对齐,宽5格,不能到达则输出-1) 输入输出样例 输 阅读全文
posted @ 2021-02-28 20:56 loliconsk 阅读(116) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 14 下一页