摘要: 引自:http://www.cnblogs.com/DwyaneTalk/p/4617057.html 华师大oj 1009 问题描述: 将正整数n表示成一系列正整数之和:n=n1+n2+…+nk, 其中n1≥n2≥…≥nk≥1,k≥1。 正整数n的这种表示称为正整数n的划分。求正整数n的不 同划分 阅读全文
posted @ 2017-03-10 11:29 流浪猫还挑食 阅读(266) 评论(0) 推荐(0) 编辑
摘要: Description The objective of the program you are going to produce is to evaluate boolean expressions as the one shown next: Expression: ( V | V ) & F 阅读全文
posted @ 2017-03-07 21:11 流浪猫还挑食 阅读(177) 评论(0) 推荐(0) 编辑
摘要: int i ————定义整形变量i int *p———- p为指向整型变量的指针变量 int a[n]——- 定义整型数组a,它有n个元素 int *p[n]—– 定义指针数组p,它由n个指向整型数据的指针元素组成 int (*p)[n] —p为指向含n个元素的一维数组的指针变量 int f()—— 阅读全文
posted @ 2017-03-01 11:14 流浪猫还挑食 阅读(172) 评论(0) 推荐(0) 编辑
摘要: One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is re 阅读全文
posted @ 2017-02-04 22:48 流浪猫还挑食 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 将一个长度最多为30位数字的十进制非负整数转换为二进制数输出。 多组数据,每行为一个长度不超过30位的十进制非负整数。 (注意是10进制数字的个数可能有30个,而非30bits的整数) 每行输出对应的二进制数。 2.在网上看到大整数十进制转六进制的解法(来源:十进制大整数转换成十六进制数) Desc 阅读全文
posted @ 2017-01-26 09:39 流浪猫还挑食 阅读(404) 评论(0) 推荐(0) 编辑
摘要: (2011年真题)完成如下程序:获得男学生,女学生以及所有学生的平均年龄。学生的年龄信息保存在C:盘根目录下,文件名为student.dat,一下是部分文件信息实例。(B-Boy,G-Girl) B 23 G 22 B 21 B 20 … 程序的输出结果参考如下形式: Average age of 阅读全文
posted @ 2016-11-08 20:15 流浪猫还挑食 阅读(611) 评论(0) 推荐(0) 编辑