A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the ...
分类:
其他好文 时间:
2015-01-15 23:56:23
阅读次数:
294
首先是服务器程序:
#include
#include
int main()
{
int listenfd, connfd;
int nWrite;
int count;
struct sockaddr_in servaddr;
char buff[MAXLINE];
time_t ticks;
listenfd = Socket(...
分类:
其他好文 时间:
2015-01-15 22:14:25
阅读次数:
194
Follow up for "Find Minimum in Rotated Sorted Array":
What if duplicates are allowed?
Would this affect the run-time complexity? How and why?
Suppose a sorted array is rotated at some pivot u...
分类:
其他好文 时间:
2015-01-15 22:14:10
阅读次数:
166
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 the element on top of the stack.top() -- Get ...
分类:
其他好文 时间:
2015-01-15 22:12:22
阅读次数:
150
考试排名
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 9744 Accepted Submission(s): 3398
Problem Description
C++编程考试使用的实时提交系统,具有即时获得成绩...
分类:
其他好文 时间:
2015-01-15 22:08:48
阅读次数:
141
点击打开链接
2018. The Debut Album
Time limit: 2.0 second
Memory limit: 64 MB
Pop-group “Pink elephant” entered on recording their debut album. In fact they have only two songs: “My love...
分类:
编程语言 时间:
2015-01-15 22:04:18
阅读次数:
304
Milk PatternsTime Limit:5000MSMemory Limit:65536KTotal Submissions:11073Accepted:4949Case Time Limit:2000MSDescriptionFarmer John has noticed that the...
分类:
其他好文 时间:
2015-01-15 21:36:23
阅读次数:
243
覆盖的面积
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 3870 Accepted Submission(s): 1906
Problem Description
给定平面上若干矩形,求出被这些矩形覆盖过至少两...
分类:
其他好文 时间:
2015-01-15 20:19:19
阅读次数:
162
Picture
Time Limit: 2000MS
Memory Limit: 10000K
Total Submissions: 10727
Accepted: 5662
Description
A number of rectangular posters, photographs and other pictures of t...
分类:
其他好文 时间:
2015-01-15 18:22:49
阅读次数:
188
Balance
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 11042
Accepted: 6855
Description
Gigel has a strange "balance" and he wants to poise it. Actually, ...
分类:
其他好文 时间:
2015-01-15 18:15:30
阅读次数:
178