COURSES
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 18438
Accepted: 7262
Description
Consider a group of N students and P courses. Each student visit...
分类:
其他好文 时间:
2015-03-10 12:06:44
阅读次数:
123
石子合并问题--直线版Time Limit: 1000msMemory Limit: 32768KBThis problem will be judged on HRBUST. Original ID: 1818 64-bit integer IO format: %lld...
分类:
其他好文 时间:
2015-03-10 11:36:09
阅读次数:
137
Language:
Default
Mondriaan's Dream
Time Limit: 3000MS
Memory Limit: 65536K
Total Submissions: 12405
Accepted: 7239
Description
Squares and rectangles fascinated ...
分类:
其他好文 时间:
2015-03-10 10:28:42
阅读次数:
144
Given an unsorted integer array, find the first missing positive integer.
For example,
Given [1,2,0] return 3,
and [3,4,-1,1] return 2.
Your algorithm should run in O(n) time and uses constant spa...
分类:
其他好文 时间:
2015-03-10 10:26:23
阅读次数:
136
1.题目避免重复:包含“time.h”头文件,利用srand(unsigned)time(NULL)语句避免题目重复2.(1)是否有乘除法:如果没有乘除法,就用随机产生0,1来控制加减法,如果有乘除法,就随机产生0,1,2,3来控制加减乘除法 (2)是否有括号: 由于真分数是a/b的格式,所以当.....
分类:
其他好文 时间:
2015-03-10 10:08:19
阅读次数:
125
最近,弄了一下,调用系统设置的方法,Android4.0的系统,下面的所有设置项,都亲测可以调用。首先调用的方式如下:Intent mintent_setting_time = new Intent( android.provider.Settings.ACTION_SETTINGS);s...
分类:
移动开发 时间:
2015-03-09 23:59:30
阅读次数:
268
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4292You, a part-time dining service worker in your college’s dining hall, are now confused with a new p...
分类:
其他好文 时间:
2015-03-09 23:58:36
阅读次数:
205
Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3175Accepted Submission(s): 2373Problem Descriptio...
分类:
其他好文 时间:
2015-03-09 23:54:12
阅读次数:
174
Sort a linked list in O(n log n) time using constant space complexity.这题的时间复杂度要求是O(n logn),很容易想到用mergeSort来解。/** * Definition for singly-linked list. ...
分类:
其他好文 时间:
2015-03-09 23:54:04
阅读次数:
212
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes...
分类:
其他好文 时间:
2015-03-09 22:23:10
阅读次数:
206