perl -e "print
scalar(gmtime(1234567890))"使用perl转换unix时间Fri Feb 13 23:31:30 2009date +%s
获取当前时间戳1397900749utime(){ perl -e "print localtime($1).\"\n\"...
分类:
其他好文 时间:
2014-05-22 01:41:58
阅读次数:
311
做了大半个月,终于把第一章做完了有的题遇到了不小的坎儿,看着网上一群高中生都做得那么好,心理还是有些小郁闷的。不禁感慨我过去的四年真是虚度啊。总结一下第一章学习到的知识吧。①闰年判断int
isleapyear(int N){ if((N%100 != 0 && N%4 ==0) || (N%...
分类:
其他好文 时间:
2014-05-19 22:03:31
阅读次数:
317
A square pattern of size N x N (1 20 #include
21 #include 22 using namespace std; 23 24 //旋转90度的操作 25 int
**transiformation_one(int before[][11],i...
分类:
其他好文 时间:
2014-05-16 03:10:30
阅读次数:
361
一看题目 经典的8皇后问题 不过是皇后数量可变而已 不用想 回溯法。 需要个生成每次可选择序列的函数,
在存储可选择的序列时按照先大后小的顺序排的。这样每次找最小和去掉最小都很方便,只要有个记录数量的变量 每次减1就好了。 写完后,居然悲剧了。
在皇后数量达到13时, 在自己电脑上跑 内存溢出了 在...
分类:
其他好文 时间:
2014-05-16 00:04:46
阅读次数:
444
Stone crushing and screening plant emerged at a
high speed, especially in the cement plant, gold ore mining, iron ore mining,
metallurgy plant, and ot...
分类:
其他好文 时间:
2014-05-15 17:18:36
阅读次数:
368
How to use DISM to install a hotfix from within
WindowsJeff Hughes (CORE)15 Feb 2011 10:10 AM22Hello, my name is Emmers Presson.
I am a Support Escala...
/*
ID:kevin_s1
PROG:milk
LANG:C++
*/
#include
#include
#include
#include
#include
#define MAXN 5001
using namespace std;
int N,M;
struct farmer{
int Pi;
int Ai;
}farmers[MAXN];
int cmp(farm...
分类:
其他好文 时间:
2014-05-13 11:56:20
阅读次数:
252
/*
ID:kevin_s1
PROG:dualpal
LANG:C++
*/
#include
#include
#include
#include
#include
using namespace std;
int N,S;
vector result;
bool isPalindromic(string num){
bool flag = true;
int len =...
分类:
其他好文 时间:
2014-05-13 06:10:09
阅读次数:
312
倒牛奶的问题, 开始看感觉跟倒水的问题很像, 想直接找规律, 写个类似于循环取余的代码。
但后来发现不行,因为这道题有三个桶,水量也是有限制的。只好用模拟的方法把所有的情况都试一遍。建一个state[21][21][21]的数组存储出现过的状态。对于遍历状态,对每一种状态,
分别采用六种处理方法,若...
分类:
其他好文 时间:
2014-05-12 21:11:07
阅读次数:
370
The project generator sold the 12 sq.-km Phum
Syarung prospect on its 300 sq.-km Oyadao South Concession to Mesco Gold, a
subsidiary of Indian steel m...
分类:
移动开发 时间:
2014-05-12 00:16:43
阅读次数:
467