随笔分类 - 题库—HDOJ
摘要:Problem Description Let's define the sum of all digits in x as g(x). For example, g(123)=1+2+3=6. Give you a function: f(x)=Ax2g(x)+Bx2+Cxg2(x)+Dxg(x)
阅读全文
摘要:Problem Description You are required to put n straight lines on a plane, guaranteeing no three lines share a common point and no lines are coincident.
阅读全文
摘要:Problem Description TI10 and ICPC World Finals 2020, which will be held earlier? Take a bet! The International(TI) is the biggest and most prestigious
阅读全文
摘要:Problem Description As an elegant and accomplished girl, Bella loves watching stars at night (especially the Polaris). There are totally n stars in th
阅读全文
摘要:Problem Description Bob accidentally spilled some drops of ink on the paper. The initial position of the i-th drop of ink is (xi,yi), which expands ou
阅读全文
摘要:Problem Description Alice and Bob are playing a game. They take turns to operate. There are n numbers, a1 , a2 , ... , an. Every time, the player play
阅读全文
摘要:Problem Description Eric is playing a game on an infinite plane. On the plane, there is a circular area with radius r1 called the Scoring Area. Every
阅读全文
摘要:Problem Description 给定一张 n×nn×n 的网格图,有些格子能走,有些格子不能走,左上角的格子坐标为 (1,1)(1,1),右下角的格子坐标为 (n,n)(n,n)。 问最多可以找到多少条从 (1,1)(1,1) 到 (n,n)(n,n) 的不相交路径,使得每条路径经过的每个格
阅读全文
摘要:Banzhuan *Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 262144/262144 K (Java/Others) Total Submission(s): 102 Accepted Submission(s): 36 * Pro
阅读全文
摘要:Problem Description One day, a zombie came to the Lawn of the Dead, which can be seen as an n×m grid. Initially, he stood on the top-left cell, which
阅读全文
摘要:Problem Description Little Rabbit is a college student who is studying Communication Engineering. In this term, he has a course called Digital Image P
阅读全文
摘要:Problem Description This summer, ZXyang became so tired when doing the problems of Multi-University contests. So he decided to attend the Unified Nati
阅读全文
摘要:Problem Description Pixels in a digital picture can be represented with three integers (R,G,B) in the range 0 to 255 that indicate the intensity of th
阅读全文
摘要:Problem Description Alice and Bob are playing a game. In this game, there are n straight lines on the 2D plane. Alice will select exactly k straight l
阅读全文
摘要:Problem Description Chenjb is struggling with data stucture now. He is trying to solve a problem using segment tree. Chenjb is a freshman in programmi
阅读全文
摘要:Problem Description Give you a cube with a side length of n-1. Find the number of equilateral triangles with three points on the cube point. Each side
阅读全文
摘要:Problem Description Given a sequence of integers of length n, find the shortest consecutive subsequence witch XOR sum not less than k. If there are mu
阅读全文
摘要:Problem Description Let’s call a weighted connected undirected graph of n vertices and m edges KD-Graph, if the following conditions fulfill: * n vert
阅读全文
摘要:Problem Description Given n-1 points, numbered from 2 to n, the edge weight between the two points a and b is lcm(a, b). Please find the minimum spann
阅读全文
摘要:Problem Description Given a matrix of n rows and m columns,find the largest area submatrix which is non decreasing on each column Input The first line
阅读全文