Coldfresh的博客

keeeeeep!~

Editor HDU - 4699 (模拟)

Input 8 I 2 I -1 I 1 Q 3 L D R Q 2 Output 2 3 思路:就是模拟了,关键是怎么模拟了,这里用两个栈,如果左移就做边出栈,然后压到右边的栈。通过两个栈来模拟光标左右移动,其也就差不多了。 代码: #include&...

2018-05-03 14:11:38

阅读数:18

评论数:0

(pat)A1014. Waiting in Line

Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rule...

2018-03-10 16:25:26

阅读数:44

评论数:0

Pocket Cube HDU - 4801 (dfs)

Pocket Cube is a 3-D combination puzzle. It is a 2 × 2 × 2 cube, which means it is constructed by 8 mini-cubes. For a combination of 2 × 2 mini-cubes...

2017-09-29 15:15:00

阅读数:89

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭