- 博客(7)
- 收藏
- 关注
原创 随便写写C++,看看Essential C++
1.所谓“类”,是用户自定义的数据类型,class机制让我们得以将数据类型加入到我们的程序中,并有能力识别他们。class的定义一般分为两步:一是在头文件中声明,另一文件是程序代码文件,包含了这些操作行为的实现内容。2.初始化可以使用赋值符号”=” : int num_tries = 0; 也可以使用”构造函数语法” : int num_tries(0); 因为如果对象不是内置类型或者对象需
2016-03-13 21:14:10 697
转载 1106. Lowest Price in Supply Chain (25)
【程序来自tiny656】 A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)– everyone involved in moving a product from supplier to customer.Starting from one root supplier, eve
2016-03-10 20:26:07 371
原创 1104. Sum of Number Segments (20)
Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence {0.1, 0.2, 0.3, 0.4}, we have 10 segments: (0.1) (0.1, 0.2) (0.1, 0.2, 0.3) (
2016-03-05 20:44:37 314
原创 1006. Sign In and Sign Out (25)
At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door. Given the records of signing in’s and out’s, you
2016-03-04 19:02:15 330
原创 1005. Spell It Right (20)
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English.Input Specification:Each input file contains one test case. Each cas
2016-03-04 18:52:11 269
原创 关于map
输入一些单词,找出所有满足如下条件的单词:该单词不能通过字母重排,得到输入文 本中的另外一个单词。在判断是否满足条件时,字母不分大小写,但在输出时应保留输入中 的大小写,按字典序进行排列(所有大写字母在所有小写字母的前面)。 样例输入: ladder came tape soon leader acme RIDE lone Dreis peat ScAlE orb eye Rides de
2016-03-03 16:12:43 386
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人