摘要:
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... 阅读全文
摘要:
SRM 51321000CutTheNumbersProblem StatementManao has a board filled with digits represented asString[]board. The j-th character of the i-th element ofb... 阅读全文
摘要:
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-... 阅读全文