//输入年月日,判断是该年的第几天,还可以进一步判断从1年开始的第几天
#include
using namespace std;
int main()
{
int Day(int x,int y,int r);
int Calculate_1(int x,int y,int r);
int Calculate_2(int n);
int n,y,r;/**************...
分类:
其他好文 时间:
2014-07-22 22:48:55
阅读次数:
258
printf("请输入查询方式\n"); printf("输入1:表示查询第几天(输入年月日)\n"); printf("输入2:表示查询具体的日期(输入年和天数)\n"); int n=2, year=2001,month=12,day=31,dayOfTheYear=4; ...
分类:
其他好文 时间:
2014-07-22 22:47:13
阅读次数:
204
The partial sum problem
时间限制:1000 ms | 内存限制:65535 KB
难度:2
描述One day,Tom’s girlfriend give him an array A which contains N integers and asked him:Can you choose some integers from the N ...
分类:
其他好文 时间:
2014-07-22 18:01:38
阅读次数:
250
一、sqlserver日期时间函数SqlServer中的日期与时间函数1.当前系统日期、时间selectgetdate()2.dateadd在向指定日期加上一段时间的基础上,返回新的datetime值例如:向日期加上2天selectdateadd(day,2,'2004-10-15')--返回:20...
分类:
数据库 时间:
2014-07-22 00:37:33
阅读次数:
258
As Easy As A+B
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 36141 Accepted Submission(s): 15642
Problem Description
These day...
分类:
其他好文 时间:
2014-07-22 00:26:35
阅读次数:
233
SPOJ VLATTICE题意:x,y,z 2 #include 3 #include 4 #include 5 #define maxn 1001000 6 #define LL long long 7 using namespace std; 8 9 int K[maxn];10 in...
分类:
其他好文 时间:
2014-07-22 00:15:33
阅读次数:
454
FZU 2157题意:树上的节点可以打上0或1的标记,树的权值由两部分呢组成,点权和边权,有00、01、10、11四种组合的边权,问最小权值和。以1节点为树根分析:dp[x][0]表示x标记0后的最小的权值,dp[x][1]同理那么每次可以计算dp[x][0],dp[x][1];例如dp[x][1]...
分类:
其他好文 时间:
2014-07-22 00:09:35
阅读次数:
371
Description
Problem C: A Walk Through the Forest
Jimmy experiences a lot of stress at work these days, especially since his accident made working difficult. To relax after a hard day, he likes to ...
分类:
其他好文 时间:
2014-07-21 09:27:14
阅读次数:
300
Problem Description
Whuacmers use coins.They have coins of value A1,A2,A3...An Silverland dollar. One day Hibix opened purse and found there were some coins. He decided to buy a very nice watch in...
分类:
其他好文 时间:
2014-07-20 23:01:28
阅读次数:
271
Sqoop执行命令:./sqoopimport--connect"jdbc:db2://10.105.4.55:50001/SCCRM55"--usernamedb2inst1--passworddb2opr2010--tableWF_4G_BILLDETAIL_NEW_20140717--fetch-size1000-m1--target-dir/ext/ods/ODS_RPT_DAY_DET/20140717_1--fields-terminated-by‘&‘--lines-termi..
分类:
数据库 时间:
2014-07-19 18:16:00
阅读次数:
550