题目信息1092. To Buy or Not to Buy (20)时间限制100 ms
内存限制65536 kB
代码长度限制16000 B
Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were m...
分类:
其他好文 时间:
2016-05-18 19:34:05
阅读次数:
169
一:
g++c1.cpp -o c1.exe -std=c++11
c++11,加入了int a = {10},的初始化形式,如果有精度损失,那么会有警告。
二:
对:const int引用= int //const 只是针对自己来说的
错:int 引用 = constint //不符合逻辑与语法,引用不是常量,说明可以改,但引用的却是常量,矛盾了。...
分类:
编程语言 时间:
2016-05-18 19:32:49
阅读次数:
295
题目信息1093. Count PAT’s (25)时间限制120 ms
内存限制65536 kB
代码长度限制16000 B
The string APPAPT contains two PAT’s as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the secon...
分类:
其他好文 时间:
2016-05-18 19:31:34
阅读次数:
116
湘大oj地址:http://202.197.224.59/OnlineJudge2/index.php/Problem/read/id/1086
菱形
时间限制:1000 ms | 内存限制:65536 KB
Description
小明现在是湘潭大学10级计算机系的学生。他的C语言学的还算可以,但是今天老师布置的一道课后作业题却把他难住了。题...
分类:
其他好文 时间:
2016-05-18 19:33:24
阅读次数:
224
题目信息1094. The Largest Generation (25)时间限制200 ms
内存限制65536 kB
代码长度限制16000 B
A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level belong to the same generat...
分类:
其他好文 时间:
2016-05-18 19:32:17
阅读次数:
200
湘大oj题目地址:传送门
Cycloid
时间限制:1000 ms | 内存限制:65536 KB
Description
A cycloid is the curve traced by a point on the rim of a circular wheel as the wheel rolls along a straight li...
分类:
其他好文 时间:
2016-05-18 19:32:52
阅读次数:
160
题目信息1095. Cars on Campus (30)时间限制220 ms
内存限制65536 kB
代码长度限制16000 B
Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the...
分类:
其他好文 时间:
2016-05-18 19:31:13
阅读次数:
257
题目信息1101. Quick Sort (25)时间限制200 ms
内存限制65536 kB
代码长度限制16000 B
There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the...
分类:
其他好文 时间:
2016-05-18 19:33:03
阅读次数:
155
题目信息1096. Consecutive Factors (20)时间限制400 ms
内存限制65536 kB
代码长度限制16000 B
Among all the factors of a positive integer N, there may exist several consecutive numbers. For example, 630 can be factored a...
分类:
其他好文 时间:
2016-05-18 19:32:52
阅读次数:
181
题目信息1098. Insertion or Heap Sort (25)时间限制100 ms
内存限制65536 kB
代码长度限制16000 BAccording to Wikipedia:Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list...
分类:
编程语言 时间:
2016-05-18 19:31:52
阅读次数:
152
题目信息1097. Deduplication on a Linked List (25)时间限制300 ms
内存限制65536 kB
代码长度限制16000 B
Given a singly linked list L with integer keys, you are supposed to remove the nodes with duplicated absolute value...
分类:
其他好文 时间:
2016-05-18 19:33:10
阅读次数:
164
链接:http://ifeve.com/spring-interview-questions-and-answers/
原文:http://www.javacodegeeks.com/2014/05/spring-interview-questions-and-answers.html%20
什么是spring?
Spring 是个Java企业级应用的开源开发框架。Spring主要用来开发Java...
分类:
编程语言 时间:
2016-05-18 19:30:52
阅读次数:
304
问题描述
输入:一个最多包含n个正整数的文件,每个数都小于n,其中n=107。如果在输入文件中有任何正数重复出现就是致命错误。没有其他数据与该正数相关联。
输出:按升序排列的输入正数的列表。
约束:最多有1MB的内存空间可用,有充足的磁盘存储空间可用。运行时间最多几分钟,运行时间为10秒就不需要进一步优化。
程序设计与实现概要:应用位图或位向量表示集合。可用一个10位长的字符...
分类:
编程语言 时间:
2016-05-18 19:29:41
阅读次数:
195
算法题目大都比较抽象,可以通过举例子来搞清楚具体的逻辑。题目:从上到下,按照从左往右打印二叉树每一层的结点。二叉树的结点:class BinaryTreeNode{
int mValue;
BinaryTreeNode mLeft;;
BinaryTreeNode mRight;
}思路:
我们发现规律:先遍历的结点,它的子节点也会先被遍历到,...
分类:
其他好文 时间:
2016-05-18 19:32:10
阅读次数:
142
题目信息1099. Build A Binary Search Tree (30)时间限制100 ms
内存限制65536 kB
代码长度限制16000 B
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree...
分类:
其他好文 时间:
2016-05-18 19:32:10
阅读次数:
132
题目信息1103. Integer Factorization (30)时间限制1200 ms
内存限制65536 kB
代码长度限制16000 B
The K-P factorization of a positive integer N is to write N as the sum of the P-th power of K positive integers. You are su...
分类:
其他好文 时间:
2016-05-18 19:29:49
阅读次数:
102
;; 关于php.ini ;;
;;;;;;;;;;;;;;;;;
; 这个文件必须命名为'php.ini'并放置在httpd.conf中PHPINIDir指令指定的目录中。
; 最新版本的php.ini可以在下面两个位置查看:
; http://cvs.php.net/viewvc.cgi/php-src/php.ini-recommended?view=co
; http://cvs...
分类:
Web程序 时间:
2016-05-18 19:30:20
阅读次数:
330