摘要:
1 #include 2 using namespace std; 3 const int M = 1e5 + 10 ; 4 int n , m ; 5 pair a[M] ; 6 int rk[M] ; 7 struct node { 8 int l , r , sum ; 9 } n... 阅读全文
摘要:
1 今天干的俄罗斯的一场多校,被虐哭啊,就做出两题。 2 3 4 5 6 7Gym 100496DData Mining 8 题目讲得是给你一串数字,然后给你i,p,表示从第i开始,对这串数离散话,并且离散化后的字典序要最小,然后输出原来下标为i+p的离散化后的值 9 是... 阅读全文
摘要:
暑假集训昨天刚开始,14级的小伙伴快到齐了,hhhhh ,毕竟下学期区域赛,对我们来说还是很困难的。打算每天写份总结。UVA 11300 C.Spreading the Wealth题目大意:n个人围成一圈,告诉你每个人现有的资产,每个人可以给他相邻的人钱,也可以从他相邻的人那里取到钱。最终令一圈里... 阅读全文
摘要:
SRM 51321000CutTheNumbersProblem StatementManao has a board filled with digits represented asString[]board. The j-th character of the i-th element ofb... 阅读全文
摘要:
(以下是ubuntu上的配置。。。。。。。。 但如果你是在window上的,直接用一下配置吧(懒得介绍了)=。= ) 期末考试这段时间==放水休息了,现在准备转型vim. 首先你要了解vim的与众不同之处:http://coolshell.cn/articles/5426.html 补充: @然而并 阅读全文
摘要:
SRM 5102250TheAlmostLuckyNumbersDivTwoProblem StatementJohn and Brus believe that the digits 4 and 7 are lucky and all others are not. According to th... 阅读全文
摘要:
SRM 1472600PeopleCircleProblem StatementThere arenumMalesmales andnumFemalesfemales arranged in a circle. Starting from a given point, you count clock... 阅读全文
摘要:
SRM 14621000BridgeCrossingProblem StatementA well-known riddle goes like this: Four people are crossing an old bridge. The bridge cannot hold more tha... 阅读全文
摘要:
SRM 1462500RectangularGridProblem StatementGiven thewidthandheightof a rectangular grid, return the total number of rectangles (NOT counting squares) ... 阅读全文
摘要:
D. Regular Bridgetime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputAn undirected graph is calledk-... 阅读全文