随笔分类 -  常用算法篇

摘要:Description Edward has an array A with N integers. He defines the beauty of an array as the summation of all distinct integers in the array. Now Edwar 阅读全文 »
posted @ 2018-03-18 20:21 GHzz 阅读(147) 评论(0) 推荐(0) 编辑
摘要:Description For an upcoming programming contest, Edward, the headmaster of Marjar University, is forming a two-man team from N students of his univers 阅读全文 »
posted @ 2018-03-18 20:06 GHzz 阅读(125) 评论(0) 推荐(0) 编辑
摘要:Description A Swiss-system tournament is a tournament which uses a non-elimination format. The first tournament of this type was a chess tournament in 阅读全文 »
posted @ 2018-03-17 17:08 GHzz 阅读(238) 评论(0) 推荐(0) 编辑
摘要:简要: 莫队算法是一个对于区间、树或其他结构离线(在线)维护的算法,此算法基于一些基本算法,例如暴力维护,树状数组,分块,最小曼哈顿距离生成树,对其进行揉合从而产生的一个简单易懂且短小好写的算法。此算法在很多情况下可以很轻松的切掉一些复杂而且难写的数据结构问题。 例题:BZOJ2038 Descri 阅读全文 »
posted @ 2018-03-05 19:20 GHzz 阅读(125) 评论(0) 推荐(0) 编辑
摘要:#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define is_lower(c) (c>='a' ... 阅读全文 »
posted @ 2018-03-05 16:11 GHzz 阅读(181) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示