hdu
文章平均质量分 74
looooooogn
QQ : 2173048590
展开
-
HDU - 5649 线段树+区间二分答案 (好题)
DZY has a sequence a[1..n]. It is a permutation of integers 1∼n. Now he wants to perform two types of operations: 0lr: Sort a[l..r] in increasing order. 1lr: Sort a[l..r] in decreasing order. ...原创 2018-07-22 20:38:39 · 328 阅读 · 0 评论 -
Revenge of GCD hdu 5019
Problem DescriptionIn mathematics, the greatest common divisor (gcd), also known as the greatest common factor (gcf), highest common factor (hcf), or greatest common measure (gcm), of two or more int...原创 2018-10-02 17:03:53 · 138 阅读 · 0 评论 -
A Corrupt Mayor's Performance Art 线段树 hdu 5023
Problem DescriptionCorrupt governors always find ways to get dirty money. Paint something, then sell the worthless painting at a high price to someone who wants to bribe him/her on an auction, this s...原创 2018-10-02 20:40:28 · 141 阅读 · 0 评论 -
How far away ? hdu - 2586 LCA
Problem DescriptionThere are n houses in the village and some bidirectional roads connecting them. Every day peole always like to ask like this “How far is it if I want to go from house A to house B”...原创 2018-10-04 10:15:55 · 137 阅读 · 0 评论 -
Fibonacci hdu 5167
Problem DescriptionFollowing is the recursive definition of Fibonacci sequence:Fi=⎧⎩⎨01Fi−1+Fi−2i = 0i = 1i > 1Now we need to check whether a number can be expressed as the product of numbers in...原创 2018-10-04 19:21:06 · 212 阅读 · 0 评论 -
Revenge of Fibonacci hdu 5018
Problem DescriptionIn mathematical terms, the sequence Fn of Fibonacci numbers is defined by the recurrence relationFn = Fn-1 + Fn-2with seed values F1 = 1; F2 = 1 (sequence A000045 in OEIS).—Wiki...原创 2018-10-05 10:10:50 · 210 阅读 · 0 评论 -
Revenge of Collinearity hdu 5020
Problem DescriptionIn geometry, collinearity is a property of a set of points, specifically, the property of lying on a single line. A set of points with this property is said to be collinear (often ...原创 2018-10-05 11:08:28 · 212 阅读 · 0 评论 -
Intersection hdu 5120 计算几何
Problem DescriptionMatt is a big fan of logo design. Recently he falls in love with logo made up by rings. The following figures are some famous examples you may know.A ring is a 2-D figure bounded ...原创 2018-10-08 16:42:09 · 141 阅读 · 0 评论 -
The Frog's Games hdu 4004 二分答案转为判定
Problem DescriptionThe annual Games in frogs’ kingdom started again. The most famous game is the Ironfrog Triathlon. One test in the Ironfrog Triathlon is jumping. This project requires the frog athl...原创 2018-10-10 10:46:19 · 224 阅读 · 0 评论 -
233 Matrix hdu 5015 矩阵快速幂
Problem DescriptionIn our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 … in the same meaning. And here is the question: Suppose we have a matrix ca...原创 2018-10-02 16:07:30 · 159 阅读 · 0 评论 -
Dice hdu 5012
Problem DescriptionThere are 2 special dices on the table. On each face of the dice, a distinct number was written. Consider a1.a2,a3,a4,a5,a6 to be numbers written on top face, bottom face, left fac...原创 2018-10-02 14:12:45 · 150 阅读 · 0 评论 -
hdu 5090 Game with Pearls 二分图匹配
Problem DescriptionTom and Jerry are playing a game with tubes and pearls. The rule of the game is:Tom and Jerry come up together with a number K.Tom provides N tubes. Within each tube, there a...原创 2018-09-30 19:33:43 · 222 阅读 · 0 评论 -
2016 Multi-University Training Contest 1 GCD HDU - 5726
Give you a sequence of N(N≤100,000) integers : a1,…,an(0#include<iostream>#include<cstdio>#include<map>#include<algorithm>#i原创 2018-08-21 21:28:33 · 153 阅读 · 0 评论 -
2018 Multi-University Training Contest 8 J - Taotao Picks Apples HDU - 6406
There is an apple tree in front of Taotao’s house. When autumn comes, n apples on the tree ripen, and Taotao will go to pick these apples. When Taotao picks apples, Taotao scans these apples from th...原创 2018-08-20 21:55:50 · 174 阅读 · 0 评论 -
2011 Multi-University Training Contest 11 - Host by UESTC XOR HDU - 3949
XOR is a kind of bit operator, we define that as follow: for two binary base number A and B, let C=A XOR B, then for each bit of C, we can get its value by check the digit of corresponding position in...原创 2018-08-19 10:27:32 · 220 阅读 · 0 评论 -
2017ACM/ICPC广西邀请赛-重现赛(感谢广西大学) B - Color it HDU - 6183 线段树
Do you like painting? Little D doesn’t like painting, especially messy color paintings. Now Little B is painting. To prevent him from drawing messy painting, Little D asks you to write a program to ma...原创 2018-08-10 09:55:16 · 284 阅读 · 0 评论 -
hdu 5009 dp + 优化
Paint PearlsTime Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 3620 Accepted Submission(s): 1196Problem DescriptionLee has a string of n pea...原创 2018-09-30 20:58:32 · 152 阅读 · 0 评论 -
Ellipsoid 退火模拟
Problem DescriptionGiven a 3-dimension ellipsoid(椭球面)your task is to find the minimal distance between the original point (0,0,0) and points on the ellipsoid. The distance between two points (x1,y1,...原创 2018-09-28 16:24:50 · 202 阅读 · 0 评论 -
Walk dp
Problem DescriptionI used to think I could be anything, but now I know that I couldn’t do anything. So I started traveling.The nation looks like a connected bidirectional graph, and I am randomly wa...原创 2018-09-28 19:53:36 · 99 阅读 · 0 评论 -
ACM-ICPC 2018 南京赛区网络预赛 AC Challenge
Dlsj is competing in a contest with n (0 < n \le 20)n(0#include<iostream>#include<cstdio>#include<algorithm>#include<cstdlib>#include<原创 2018-09-02 16:16:43 · 173 阅读 · 0 评论