
ACM
文章平均质量分 72
LangoRow
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
CSUACM 1976: 搬运工小明(二分)
作为老人的小明非常忧伤,因为他马上要被流放到本部去了,住进全左家垅最有历史感的11舍真是一件非常荣幸的事情。 搬行李是个体力活,小明发现自己的行李太多啦,所以他决定去买很多个袋子来装走。到了超市的小明发现,不同大小的袋子居然价格一样???虽然买最大的自然最赚,但是小明是名远近闻名的环保人士,他觉得袋子只要能装下他的行李就够了,并且为了不麻烦收银的小姐姐(⊙o⊙)…,他也只会购买同一种大小的袋子。...原创 2018-07-24 17:04:08 · 662 阅读 · 0 评论 -
HDU - 2899 Strange fuction(三分)
Now, here is a fuction: F(x) = 6 * x^7+8*x^6+7*x^3+5*x^2-y*x (0 <= x <=100) Can you find the minimum value when x is between 0 and 100. Input The first line of the input contains an in...原创 2018-07-24 17:22:58 · 308 阅读 · 0 评论 -
HDU - 1027 - Ignatius and the Princess II(STL)
Now our hero finds the door to the BEelzebub feng5166. He opens the door and finds feng5166 is about to kill our pretty Princess. But now the BEelzebub has to beat our hero first. feng5166 says, "I h...原创 2018-07-25 08:51:13 · 158 阅读 · 0 评论 -
csuacm H - 爬楼梯
小时候我们都玩过爬楼梯的游戏:两人猜拳,赢了可向上爬一级,谁先到最高级则获胜。作为大学生,我们应该玩一个更有水平的游戏。 现在一个人要上n级楼梯,每一步可以选择上一级或者上两级,但是不能后退。求上这n级楼梯的方案数。 Input 第一行只有一个整数T(1<=T<=45),表示数据组数。 下面的T行每一行有一个整数n(1<=n<=45),表示有多少级楼梯。 O...原创 2018-07-26 17:31:55 · 361 阅读 · 0 评论 -
ACM Robot Motion(dfs深度优先搜索)
A robot has been programmed to follow the instructions in its path. Instructions for the next direction the robot is to move are laid down in a grid. The possible instructions are N north (up the ...原创 2018-07-27 17:16:50 · 310 阅读 · 0 评论