• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






曹文博

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页

2019年8月3日

map,unordered_map,hush_map的区别
摘要: 比较map,unordered_map,hush_map先附上知乎大牛的map和unorder_map的区别 即map插入查询都是logn而unordered_map则为插入O(1) 查询也为O(1)但是一种结构... 阅读全文
posted @ 2019-08-03 09:52 曹文博 阅读(125) 评论(0) 推荐(0)
 

2019年8月1日

F - Prime Test (唯一分解定理|逆元|快速加法)
摘要: Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo ... 阅读全文
posted @ 2019-08-01 15:46 曹文博 阅读(116) 评论(0) 推荐(0)
 
B - 上帝与集合的正确用法 (欧拉降幂)
摘要: 根据一些书上的记载,上帝的一次失败的创世经历是这样的:第一天, 上帝创造了一个世界的基本元素,称做“元”。第二天, 上帝创造了一个新的元素,称作“α”。“α”被定义为“元”构成的集合。容易发现,一共有两种不同... 阅读全文
posted @ 2019-08-01 11:33 曹文博 阅读(51) 评论(0) 推荐(0)
 
D - Farey Sequence (欧拉函数打表)
摘要: The Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational numbers a/b with 0 ... 阅读全文
posted @ 2019-08-01 11:23 曹文博 阅读(57) 评论(0) 推荐(0)
 

2019年7月31日

C. MP3(离散化 暴力)
摘要: C. MP3time limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outpu... 阅读全文
posted @ 2019-07-31 10:33 曹文博 阅读(79) 评论(0) 推荐(0)
 

2019年7月30日

最大团、最小独立集
摘要: 最大团最大团问题(Maximum Clique Problem, MCP)是图论中一个经典的组合优化问题,也是一类NP完全问题,在国际上已有广泛的研究,而国内对MCP问题的研究则还处于起步阶段,因此,研究最大团问... 阅读全文
posted @ 2019-07-30 21:31 曹文博 阅读(214) 评论(0) 推荐(0)
 
欧拉函数
摘要: 欧拉函数记作phi(x)对于一个数x他的欧拉函数的值就为所有比他小与且与他互质的数的个数欧拉函数的通式:φ(n)=n*(1-1/p1)*(1-1/p2)*(1-1/p3)*(1-1/p4)…..(1-1/pn),... 阅读全文
posted @ 2019-07-30 21:24 曹文博 阅读(56) 评论(0) 推荐(0)
 
In Touch(dijk+并查集优化)
摘要: There are n soda living in a straight line. soda are numbered by 1,2,…,n1,2,…,n from left to right. The di... 阅读全文
posted @ 2019-07-30 09:31 曹文博 阅读(113) 评论(0) 推荐(0)
 

2019年7月25日

Path(2019 杭电多校第一场 ) hdu 6582(最短路模板+dinic模板)
摘要: PathTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others)Total Submission(... 阅读全文
posted @ 2019-07-25 12:36 曹文博 阅读(86) 评论(0) 推荐(0)
 

2019年7月23日

2019 南昌邀请赛 Winner (tarjan缩点)
摘要: Ichuan really likes to play games, so he organized a game competition with participating players. Follows ... 阅读全文
posted @ 2019-07-23 16:58 曹文博 阅读(108) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页