p Me Escape
Time Limit: 2 Seconds Memory Limit: 32768 KB
Background
If thou doest well, shalt thou not be accepted? and if thou doest not well, sin lieth at the door. And unto th...
分类:
其他好文 时间:
2014-05-22 12:50:31
阅读次数:
280
今天服务器大规模报错,大部分用户无法登陆,小部分可以登陆,很是奇怪。
查看log,调试代码,发现问题是在oauth认证的时候出了问题,报 timestamp_refused。
google了下,问了高手,问题定位在服务器的时间可能有问题
执行date,发现比其他服务器快了5分钟...
分类:
其他好文 时间:
2014-05-22 12:30:23
阅读次数:
228
??
A Stack or A Queue?
Time Limit:
1 Second Memory Limit: 32768 KB
Do you know stack and queue? They're both important data structures. A stack is a "first in last out" (FILO) data ...
分类:
其他好文 时间:
2014-05-22 12:24:38
阅读次数:
236
Problem Description
Alice and Bob always love to play games, so does this time.
It is their favorite stone-taken game.
However, this time they does not compete but co-operate to finish this tas...
分类:
其他好文 时间:
2014-05-22 11:15:07
阅读次数:
242
EventMachine
本文主要是
EventMachine如何建一个简单的Echo服务器post_init, unbind, receive_date 方法
EchoServer
如下代码,是建立一个简单的EchoServer
#!/usr/bin/env rubyrequire 'rubygems'require 'eventmachine' class Ech...
分类:
其他好文 时间:
2014-05-22 11:14:26
阅读次数:
181
??
Terrible Sets
Time Limit: 1000MS
Memory Limit: 30000K
Total Submissions: 2999
Accepted: 1549
Description
Let N be the set of all natural numbers {0 , 1 , 2 , . . . ...
分类:
其他好文 时间:
2014-05-22 09:52:10
阅读次数:
283
【原题】
3198: [Sdoi2013]spring
Time Limit: 40 Sec Memory Limit: 256 MB
Submit: 253 Solved: 95
Description
Input
Output
Sample Input
3 3
1 2 3 4 5 6
1 2 3 0 0 0
...
分类:
编程语言 时间:
2014-05-22 09:50:42
阅读次数:
394
#include
using namespace std;
class Date
{
public:
Date(int y=0,int m=0,int d=0);
void SetDate(int y,int m,int d);
void PrintDate();
protected:
int year;
int month;
int day;
}...
分类:
其他好文 时间:
2014-05-22 08:36:19
阅读次数:
201
D. Number theory
Time Limit: 1000ms
Case Time Limit: 1000ms
Memory Limit: 65536KB
64-bit integer IO format: %lld Java class name: Main
Submit Status PID:
34055
Font Size:
+
...
分类:
其他好文 时间:
2014-05-20 16:24:12
阅读次数:
245
[root@localhost ~]# date -R // 查看时区
Mon, 19 May 2014 10:18:46 +0000
[root@localhost ~]# tzselect // 设置修改时区
Please identify a location so that time zone rules can be set correctly.
Please select a continent or ocean....
分类:
其他好文 时间:
2014-05-20 15:49:50
阅读次数:
319