摘要: Description 73 88 1 02 7 4 44 5 2 6 5(Figure 1) Figure 1 shows a number triangle. Write a program that calculates the highest sum of numbers passed on 阅读全文
posted @ 2019-07-17 20:12 龙龙666666 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 题目叙述的言语倒是蛮多的: 王强今天很开心,公司发给N元的年终奖。王强决定把年终奖用于购物,他把想买的物品分为两类:主件与附件,附件是从属于某个主件的,下表就是一些主件与附件的例子: 如果要买归类为附件的物品,必须先买该附件所属的主件。每个主件可以有 0 个、 1 个或 2 个附件。附件不再有从属于 阅读全文
posted @ 2019-07-17 12:23 龙龙666666 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 输入一个int型的正整数(十位数之内!嘞!),计算出该int型数据在内存中存储时1的个数。 my C++ codes are above: my Python style is up| 刚才在百度知道上看见一个网友问int型的数最大能存多少。这个问题其实计算机系统结构里有讲解, 首先,我们要知道在计 阅读全文
posted @ 2019-07-17 10:14 龙龙666666 阅读(485) 评论(1) 推荐(0) 编辑
摘要: There are n products in the shop. The price of the ii-th product is aiai. The owner of the shop wants to equalize the prices of all products. However, 阅读全文
posted @ 2019-07-17 09:10 龙龙666666 阅读(129) 评论(0) 推荐(0) 编辑