
algorithm
文章平均质量分 90
shuxieweilai
if I rest , I rust
展开
-
google code jam 2011 Qualification Round 资格赛 Problem C. Candy Splitting
ProblemSean and Patrick are brothers who just got a nice bag of candy from their parents. Each piece of candy has some positive integer value, and the children want to divide the candy between them. First, Sean will split the candy into two piles, and choo原创 2011-05-09 10:48:00 · 826 阅读 · 0 评论 -
第二届国信蓝点杯 c语言 本科组 赛题分析 第9题
题目: 公司发了某商务券1000元,限定只能购买商店中的m种商品。每种商品的价格为m1,m2……,要求程序列出所有正好能消费完该购物券的不同方法:程序输入:第一行是一个整数m,代表可购买商品的种类数。接下来是m个整数,每个一行,分别代表了m件商品的单价。程序输出:第一行是一个整数,表示共有多少种方案,第二行开始,每种方案占一行,表示对每种商品购买的数量,中间用空格隔开。例如:输入: 2200300则应输出:25 03 2输入:2500 800则应输出:12 0输入的第一行为物品个数,之后的每行分别为物品的重原创 2011-05-16 08:36:00 · 2250 阅读 · 15 评论 -
google code jam 2011 Qualification Round 资格赛 Problem A. Bot Trust
ProblemBlue and Orange are friendly robots. An evil computer mastermind has locked them up in separate hallways to test them, and then possibly give them cake. Each hallway contains 100 buttons labeled with the positive integers {1, 2, ..., 100}. Button k原创 2011-05-08 19:55:00 · 1305 阅读 · 1 评论