Friend HDU-1719 Friend number are defined recursively as follows.
(1) numbers 1 and 2 are friend number;
(2) if a and b are friend numbers, so is ab+a +b;
(3) only the numbers defined in (1
Tag: HDU
HDU 5354 tree points
Given a tree with n nodes, the points have power
Find the number of point pairs (x,y)
where x!=y , the difference between the maximum value and the minimum value on the path from x to y
HDU 4046 Panda [tree array] [data structure]
Subject link: http://acm.hdu.edu.cn/showproblem.php?pid=4046
——————— ——————————————.
Panda
Time Limit: 10000/4000 MS (Java/Others) Memory Limit: 32768/32768 K ( Java/Others)
Tot
HDU 5775 Bubble Sort [Array] [Data Structure]
Subject link: http://acm.hdu.edu.cn/showproblem.php?pid=5775
——————— ————————————-.
Bubble Sort
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Tota
Hang Technology Multi-school HDU 6599 I Love Palindrome String (Back Tree) Question
Title meaning: Define a string as \(super\) palindrome string as:< br> \(\bullet\) The string s is a substring of the main string str, namely \(s = str_lstr_{l + 1} \cdots str_r\)
\(\bullet\) stri
HDU 1102 Constructing Roads
Title: Problem Description There are N villages, which are numbered from 1 to N, and you should build some roads such that every two villages can connect to each other. We say two village A and B
HDU – 5372 Segment Game Tree Array
HDU-5372
We consider the total line segment minus the illegal line segment, because it is added to the number axis according to the length from small to large, so the illegal line segment is
HDU 2689 Sort IT [tree array] [data structure]
Subject link: http://acm.hdu.edu.cn/showproblem.php?pid=2689
——————————— —————————————————-.
Sort it
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Tot
HDU 2642 Stars [Two-dimensional tree array] [data structure]
Subject link: http://acm.hdu.edu.cn/showproblem.php?pid=2642
——————— ——————————————————————–.
Stars
Time Limit: 5000/2000 MS (Java/Others) Memory Limit: 32768/65536 K (Java/Others)
HDU 2838 COW SORTING [tree array] [data structure]
Subject link: http://acm.hdu.edu.cn/showproblem.php?pid=2838
——————————— ——————-.
Cow Sorting
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Subm