- 博客(8)
- 收藏
- 关注
原创 Basic Data Structure HDU - 5929 双向数组
Mr. Frog learned a basic data structure recently, which is called stack.There are some basic operations of stack: ∙ PUSH x: put x on the top of the stack, x must be 0 or 1. ∙ POP: throw the element w...
2018-04-27 21:58:28 202
原创 Josephus Problem LightOJ - 1179 数学 约瑟夫
The historian Flavius Josephus relates how, in the Romano-Jewish conflict of 67 A.D., the Romans took the town of Jotapata which he was commanding. Escaping, Josephus found himself trapped in a ca...
2018-04-25 20:56:36 734
原创 Cylinder Candy ZOJ - 3866 数学 几何 积分
Edward the confectioner is making a new batch of chocolate covered candy. Each candy center is shaped as a cylinder with radius r mm and height h mm. The candy center needs to be covered wit...
2018-04-25 19:14:57 138
原创 A Childhood Game LightOJ - 1020 数学 巴什博奕(Bash Game)
Alice and Bob are playing a game with marbles; you may have played this game in childhood. The game is playing by alternating turns. In each turn a player can take exactly one or two marbles. ...
2018-04-23 11:19:01 129
原创 Integer Divisibility LightOJ - 1078 数学 取余
If an integer is not divisible by 2 or 5, some multiple of that number in decimal notation is a sequence of only a digit. Now you are given the number and the only allowable digit, you should repo...
2018-04-23 11:03:07 182
原创 FZU 2140 Forever 0.5
Given an integer N, your task is to judge whether there exist N points in the plane such that satisfy the following conditions: 1. The distance between any two points is no greater than 1.0...
2018-04-14 19:57:41 147
原创 FZU 2109 Mountain Number 数位DP
One integer number x is called "Mountain Number" if: (1) x>0 and x is an integer; (2) Assume x=a[0]a[1]...a[len-2]a[len-1](0≤a[i]≤9, a[0] is positive). Any a[2i+1] is larger or equal to a[2i] and...
2018-04-14 19:05:14 176
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人