上一页 1 ··· 4 5 6 7 8 9 10 下一页
摘要: 不知道能不能做到。但我不想被别人嘲笑。 向学长学习 再也没有理由逃避了 题解:还记得2年前的一个晚上,我和一个女孩一起写完了这篇文章。写完后,她哭了,我笑了。然后,她走了,我哭了。2年后,我又找到她,这次,我没有让她走掉,她成了我的新娘。 不知道什么时候,开始知道ACM;也不知道什么时候,开始喜欢上 阅读全文
posted @ 2020-09-30 12:00 LegendN 阅读(171) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<algorithm> 3 #include<cmath> 4 #include<cstring> 5 #include<string> 6 7 using namespace std; 8 const int maxn = 1e7 + 阅读全文
posted @ 2020-09-30 10:22 LegendN 阅读(157) 评论(0) 推荐(0)
摘要: 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 const int maxn = 5e4 + 10; 5 6 int n; 7 8 int vis[maxn];//最小质因子 9 int prime[maxn]; 10 int fun[max 阅读全文
posted @ 2020-09-21 22:04 LegendN 阅读(151) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<cmath> 5 #include<cstdio> 6 7 using namespace std; 8 9 const int maxn = 2e5 阅读全文
posted @ 2020-09-18 21:09 LegendN 阅读(124) 评论(0) 推荐(0)
摘要: 转自:https://blog.csdn.net/weixin_43914593/article/details/107508909?utm_source=app 1 import java.math.*; 2 import java.util.*; 3 public class Main{ 4 p 阅读全文
posted @ 2020-09-16 18:13 LegendN 阅读(82) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<string> 5 #include<cstdio> 6 7 using namespace std; 8 9 int n; 10 int a[1010 阅读全文
posted @ 2020-09-16 13:06 LegendN 阅读(145) 评论(0) 推荐(0)
摘要: gcd(fib[i],fib[j]) = fib[gcd(i,j)];太6了 1 #include<iostream> 2 #include<algorithm> 3 #include<cstring> 4 #include<string> 5 #include<cmath> 6 #include< 阅读全文
posted @ 2020-09-14 22:47 LegendN 阅读(112) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6814 pown数组用于线性求逆元,需注意初始化,行号35 公式,行号37 理解不了,只能死记硬背了 参考文献:https://www.cnblogs.com/zjp-shadow/p/7773566.h 阅读全文
posted @ 2020-08-31 08:06 LegendN 阅读(118) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6867 大意:给定一棵以1为固定顶点的树,你可以从任意一个父亲节点走到其儿子节点。让你新建一条边,这条边上可以双向通行。求可抵达的点对数,主意node[i]可以抵达自身node[i]。 这题一上来就想用贪 阅读全文
posted @ 2020-08-19 20:32 LegendN 阅读(107) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=6869 威佐夫博弈原本是每次操作任取某堆的任意个石头1,或是从两堆中分别取出相同数量的石头2 方程为: 1 / t + 1 / t + 1 = 1; 当操作2修改为取出石头数量之差不超过k,即本题含义时, 阅读全文
posted @ 2020-08-19 16:33 LegendN 阅读(92) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 下一页