码迷,mamicode.com
首页 >  
搜索关键字:giveaway of the day    ( 6065个结果
07 day 2
又是惨烈的一天第一题多重背包。二进制拆分即可。#include #define max(a,b) ((a)>(b)?(a):(b))int n,m,i,j,k,l,a,b;int d[11][11];// s: time w: valueint s[10000],w[10000],pn,f[10.....
分类:其他好文   时间:2014-10-02 18:46:33    阅读次数:296
Classes and functions
As another example of a user-defined type, we’ll define a class called Time that records the time of day. The class definition looks like this: ...
分类:其他好文   时间:2014-10-01 19:47:11    阅读次数:245
07 DAY 1
壮烈的一天。。。第一题本意是水题,然后写了块状数组模拟,最后发现算法错了。。。然后其实快排一遍扫一遍完事。。。 100分#include #include #define min(a,b) ((a)int a[40],n,p,c,i;unsigned int k;void search(int f,...
分类:其他好文   时间:2014-10-01 18:20:41    阅读次数:123
Shell中取时间格式方法
Shell中取时间格式方法2007-09-13 15:35常用date的显示格式:date +%F //2007-03-06date +%Y%m%d//20070306date +%T //23:37:11//昨天date +%Y%m%d -d "-1 day"//明天date +%Y%m%d -d...
分类:其他好文   时间:2014-09-30 03:11:01    阅读次数:225
Day dreaming
分类:其他好文   时间:2014-09-30 01:10:41    阅读次数:167
[爱上Swift] day 6:在TableView中加载自定义TableViewCell
前言TableView可以帮助我们现实通用的列表样式,如这样:但是我们有时有需要一些更具定制化的Cell,比如:也就是说我们会在Cell中布局一些空间,更丰富的显示我们的信息。让代码飞一会儿首先我们自定义一个Swift class继承TableViewCell:import UIKitclass C...
分类:编程语言   时间:2014-09-29 18:22:11    阅读次数:873
定时任务 Linux cron job 初步使用
查看定时任务的命令为:crontab -l编辑定时任务的命令为:crontab -e (编辑后立即生效 若注释可在行首加# 同vi) 定时任务说明 每一行为一个任务 每一行分为六个部分,每一部分用空格隔开,同一个部分用逗号隔开 minute hour day_of_month month w...
分类:系统相关   时间:2014-09-29 11:22:30    阅读次数:243
Restore content database in sharepoint
sometimes, we need backup content database about sharepoint site, then restore it one day. of course, we can backup the contetn database in SQL, then restore it in Sharepoint Central Admin, but it oft...
分类:数据库   时间:2014-09-28 21:51:25    阅读次数:274
js获取当前年月日
function GetDate(){var now = new Date();var year = now.getFullYear(); //年var month = now.getMonth() + 1;//月var day = now.getDate(); //日 var hh = no...
分类:Web程序   时间:2014-09-28 18:24:53    阅读次数:170
c语言常见编程
//一个猴子第一天偷了a个桃子,吃了一半又多吃了一个,第二天又吃了一半还多吃了一个,一直下去,直到第十天,只有一个桃子了。求第一天的桃子数量# import "stdio.h"int main(int argc, char * argv[]){ int x2,x1,day=9; x2=1...
分类:编程语言   时间:2014-09-27 21:30:10    阅读次数:268
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!