题目:DescriptionThere are only one case in each input file, the first line is a integerN (N ≤ 1,000,00)denoted the total operations executed by Mary.The...
分类:
其他好文 时间:
2014-07-22 23:37:37
阅读次数:
434
f <- function(start_time) { start_time <- as.POSIXct(start_time) dt <- difftime(Sys.time(), start_time, units="secs") # Since you only want the H:M...
分类:
其他好文 时间:
2014-07-22 22:55:12
阅读次数:
185
What if the given tree could be any binary tree? Would your previous solution still work?Note:You may only use constant extra space.For example,Given ...
分类:
其他好文 时间:
2014-07-22 08:37:34
阅读次数:
289
#!/usr/bin/perl
#?name:?logcalc.pl
#?calc?the?amount?of?access?url
use?strict;
use?warnings;
use?diagnostics;
use?File::Basename;
my?($arg,?$arg_only);
my?$FILE;
my?($year,?$mo...
分类:
其他好文 时间:
2014-07-22 08:13:36
阅读次数:
221
Apparently BFS is the most obvious one.. but it is not that simple - only constant extra space is provided.Then the only strategy to take is recursion...
分类:
其他好文 时间:
2014-07-22 00:39:35
阅读次数:
258
Media Queries的语法如下所示:@media [media_query] media_type and media_feature 使用Media Queries样式模块时都必须以"@media"方式开头。media_query表示查询关键字,在这里可以使用not关键字和only关键字。n...
分类:
其他好文 时间:
2014-07-21 23:39:35
阅读次数:
472
Sumdiv
Description
Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901).
Input
The only line...
分类:
其他好文 时间:
2014-07-21 16:27:12
阅读次数:
187
Pipes have no names, and their biggest disadvantage is that they can be used ?only?between processes that have a parent process in common. Two unrelated processes can-? not create a pipe betwee...
分类:
其他好文 时间:
2014-07-21 10:36:45
阅读次数:
237
This week I was attending a CI training course about svn. Here I‘d like to share what I have learnt. As I am an absolutely green bird to svn, this post only covers those most common usages. (1) C...
分类:
其他好文 时间:
2014-07-20 23:33:04
阅读次数:
504
Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
分类:
其他好文 时间:
2014-07-19 22:34:50
阅读次数:
196