Eng 第103页
编程题:Dripping Water Wears Through a Stone
Dripping water wears away stone is an idiom, which originated from the 《Chinese book • Meicheng biography》by Ban Gu of t…
编程题:Assign Cookies
Assume you are an awesome parent and want to give your children some cookies. But, you should give each child at most on…
编程题:Integer Solution
There are two integers $x$ and $y$. The sum of $x$ and $y$ equals an integer $n$ and $x$ multiplied by $y$ equal to anot…
编程题:A Mathematical Curiosity
Given two integers n and m, count the number of pairs of integers $(a,b)$ such that $0 < a < b < n$ and $(a^2+b…
编程题:Segment Tree
Today HH is learning a new data structure named segment tree, which is often used to solve segment problem, here comes…
编程题:Factor Difference
Cuber QQ is finding the minimal interesting number. An interesting number $x$ satisfies:$x$ is a positive integer;$x$ ha…
编程题:Here, Sign In
In geometry, a cuboid is a convex polyhedron bounded by six quadrilateral faces, whose polyhedral graph is the same as t…
编程题:Rabbit
What a cute rabbit! Mr.Gree has a lot of cute rabbits in the farm, and every rabbit has a number $a_1, a_2, a_3...a_n$.…
编程题:Apple
There are a box of apples,which contains N apples. You're going to give them to M person. It is required that everyone m…
编程题:又见胜局排序
n个人打乒乓球,好不热闹。已知每人各自胜了几局,请按胜局从多到少排序并输出每个人的排名rank(从1开始)、胜局数num及该人原来的输入序号index(从1开始),若num相同,则rank也相同,但输出时index小者优先输出。### 输入…