摘要: 清华:https://pypi.tuna.tsinghua.edu.cn/simple 阿里云:http://mirrors.aliyun.com/pypi/simple/ 中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/ 华中理工大学:http://p 阅读全文
posted @ 2021-05-13 18:14 Fos、伤感 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2449 阅读全文
posted @ 2019-08-30 19:04 Fos、伤感 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 图的储存方式有三种 一。邻接矩阵 优点:简洁明了,调用方便,简单易写; 缺点:内存占用大,而且没办法存重边(可能可以,但我不会),点的个数超过 3000 直接爆炸 适用范围:点的个数少,稠密图,一般结合floyed使用,可以传递闭包。 代码: scanf("%d%d",&u,&v,&w); a[u] 阅读全文
posted @ 2019-08-24 12:25 Fos、伤感 阅读(778) 评论(0) 推荐(0) 编辑
摘要: 题目描述 有一个仅由数字0与1组成的n×n格迷宫。若你位于一格0上,那么你可以移动到相邻4格中的某一格1上,同样若你位于一格1上,那么你可以移动到相邻4格中的某一格0上。 你的任务是:对于给定的迷宫,询问从某一格开始能移动到多少个格子(包含自身)。 有一个仅由数字0与1组成的n×n格迷宫。若你位于一 阅读全文
posted @ 2019-08-17 10:12 Fos、伤感 阅读(294) 评论(0) 推荐(0) 编辑
摘要: 问题 G: Give Candies 题目描述 There are N children in kindergarten. Miss Li bought them N candies。To make the process more interesting, Miss Li comes up wit 阅读全文
posted @ 2019-08-09 10:14 Fos、伤感 阅读(251) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <bits/stdc++.h> using namespace std; string a,b; const int maxn = 1e6+10; int ne[maxn],n,m; vector <int> Q; void getne(string s) { ne[1]=0; for (int i=2;i<=m;i++) { int k= 阅读全文
posted @ 2019-08-08 19:23 Fos、伤感 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 问题 F: 路 题目描述 Farmer John 热衷于散步,每天早上他都要从 1 号仓库走到 n 号仓库。 Farmer John 家的 n 个仓库被 m 条双向道路连通起来,每条道路有一个长度 w。而Farmer John 又不喜欢走路,所以他走的是从 1 号仓库到 n 号仓库的最短路。但是 F 阅读全文
posted @ 2019-08-07 11:16 Fos、伤感 阅读(300) 评论(0) 推荐(0) 编辑
摘要: #include #include using namespace std; typedef long long ll; const ll mod = 1610612741; const int base = 17; const int maxn = 1e6+10; char s[maxn]; ll ha[maxn]; int len; ll ans; inline ll qpow(int ... 阅读全文
posted @ 2019-08-05 19:10 Fos、伤感 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 被codeblocks心态搞崩了,分享一下经验给大家,具体就是无法运行编译好的程序,还有就是调试功能没法用。 查了很多资料,自己搞了一个终极解决方法:1卸载codeblocks,2打开我的电脑,全盘搜索codeblocks,搜出来的结果全删除,包括缓存。3重启。 4网上下载安装包安装。 心累。。。。 阅读全文
posted @ 2019-08-02 20:30 Fos、伤感 阅读(1536) 评论(2) 推荐(0) 编辑
摘要: 问题 D: 磊哥的密码箱 题目描述 磊哥有个密码箱,里面装的都是令磊哥羞羞的东西。箱子的密码是[1,n]里面的约数最多的数的约数数目。磊哥的女朋友想知道磊哥到底装的是什么东西?她需要你的帮助。 输入 输入一个整数T,表示有T个测试数据下面T行,每行输入一个正整数n。 输出 对每个n,输出对应一行一个 阅读全文
posted @ 2019-05-28 12:19 Fos、伤感 阅读(210) 评论(0) 推荐(0) 编辑