随笔分类 - 常用算法篇
发表于 2018-03-18 20:21阅读:147评论:0推荐:0
摘要: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
阅读全文 »
发表于 2018-03-18 20:06阅读:125评论: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
阅读全文 »
发表于 2018-03-17 17:08阅读:238评论: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
阅读全文 »
发表于 2018-03-05 19:20阅读:125评论:0推荐:0
摘要:简要: 莫队算法是一个对于区间、树或其他结构离线(在线)维护的算法,此算法基于一些基本算法,例如暴力维护,树状数组,分块,最小曼哈顿距离生成树,对其进行揉合从而产生的一个简单易懂且短小好写的算法。此算法在很多情况下可以很轻松的切掉一些复杂而且难写的数据结构问题。 例题:BZOJ2038 Descri
阅读全文 »
发表于 2018-03-05 16:11阅读:181评论: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' ...
阅读全文 »