• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
T Y
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 2 3 4 下一页
2013年8月5日
Robberies
摘要: DescriptionThe aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because they become too greedy. He has decided to work in the lucrative business of bank robbery only for a short while, before retiring to a comfortable job at 阅读全文
posted @ 2013-08-05 16:30 T天天T 阅读(285) 评论(0) 推荐(0)
Big Event in HDU
摘要: DescriptionNowadays, we all know that Computer College is the biggest department in HDU. But, maybe you don't know that Computer College had ever been split into Computer College and Software College in 2002.The splitting is absolutely a big event in HDU! At the same time, it is a trouble thing 阅读全文
posted @ 2013-08-05 12:40 T天天T 阅读(181) 评论(0) 推荐(0)
UVA 562 Dividing coins
摘要: Dividing coinsIt's commonly known that the Dutch have invented copper-wire. Two Dutch men were fighting over a nickel, which was made of copper. They were both so eager to get it and the fighting was so fierce, they stretched the coin to great length and thus created copper-wire.Not commonly kno 阅读全文
posted @ 2013-08-05 11:04 T天天T 阅读(165) 评论(0) 推荐(0)
2013年8月3日
Little Rooks
摘要: DescriptionInspired by a "Little Bishops" problem, Petya now wants to solve problem for rooks.A rook is a piece used in the game of chess which is played on a board of square grids. A rook can only move horizontally and vertically from its current position and two rooks attack each other i 阅读全文
posted @ 2013-08-03 16:02 T天天T 阅读(243) 评论(0) 推荐(0)
2013年8月2日
Bone Collector
摘要: DescriptionMany years ago , in Teddy’s hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dog’s , cow’s , also he went to the grave …The bone collector had a big bag with a volume of V ,and along his trip of collecting there are a lot of bone 阅读全文
posted @ 2013-08-02 16:14 T天天T 阅读(279) 评论(0) 推荐(0)
Piggy-Bank
摘要: DescriptionBefore ACM can do anything, a budget must be prepared and the necessary financial support obtained. The main income for this action comes from Irreversibly Bound Money (IBM). The idea behind is simple. Whenever some ACM member has any small money, he takes all the coins and throws them in 阅读全文
posted @ 2013-08-02 15:29 T天天T 阅读(229) 评论(0) 推荐(0)
2013年8月1日
0-1背包问题之——饭卡
摘要: 电子科大本部食堂的饭卡有一种很诡异的设计,即在购买之前判断余额。如果购买一个商品之前,卡上的剩余金额大于或等于5元,就一定可以购买成功(即使购买后卡上余额为负),否则无法购买(即使金额足够)。所以大家都希望尽量使卡上的余额最少。某天,食堂中有n种菜出售,每种菜可购买一次。已知每种菜的价格以及卡上的余额,问最少可使卡上的余额为多少。Input多组数据。对于每组数据:第一行为正整数n,表示菜的数量。n#include #include using namespace std;#define maxn 105int money[105*10];int f[maxn*10][maxn*10];int 阅读全文
posted @ 2013-08-01 14:53 T天天T 阅读(309) 评论(0) 推荐(0)
2013年7月30日
Monkey and Banana
摘要: DescriptionA group of researchers are designing an experiment to test the IQ of a monkey. They will hang a banana at the roof of a building, and at the mean time, provide the monkey with some blocks. If the monkey is clever enough, it shall be able to reach the banana by placing one block on the top 阅读全文
posted @ 2013-07-30 16:17 T天天T 阅读(293) 评论(0) 推荐(0)
The Triangle
摘要: Description7 3 8 8 1 0 2 7 4 4 4 5 2 6 5(Figure 1)Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on a route that starts at the top and ends somewhere on the base. Each step can go either diagonally down to the left or diagonall... 阅读全文
posted @ 2013-07-30 10:04 T天天T 阅读(228) 评论(0) 推荐(0)
2013年7月29日
Burning Midnight Oil
摘要: DescriptionOne day a highly important task was commissioned to Vasya — writing a program in a night. The program consists ofnlines of code. Vasya is already exhausted, so he works like that: first he writesvlines of code, drinks a cup of tea, then he writes as much aslines, drinks another cup of tea 阅读全文
posted @ 2013-07-29 16:18 T天天T 阅读(327) 评论(0) 推荐(0)
上一页 1 2 3 4 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3