摘要: 蔡勒公式是一种计算任何一日属一星期中哪一日的算法,由蔡勒(Julius Christian Johannes Zeller)推算出。 公式 公式都是基于公历的置闰规则来考虑。 公式中的符号含义如下: w:星期(计算所得的数值对应的星期:0-星期日;1-星期一;2-星期二;3-星期三;4-星期四;5- 阅读全文
posted @ 2017-05-03 18:42 zxzhang 阅读(1308) 评论(1) 推荐(0) 编辑
摘要: vector创建二维数组 初始化二维数组 vector > ivec(n ,vector(m)); //n*m的二维vector vector > ivec(n , vector(m, 0)); //n*m的二维vector,所有元素为0 动态创建m*n的二维 方法一: vector > ivec; ivec.resize(n); for(int i = 0; i > ivec;... 阅读全文
posted @ 2017-05-03 18:31 zxzhang 阅读(784) 评论(0) 推荐(0) 编辑
摘要: 传送门 Description During the lesson small girl Alyona works with one famous spreadsheet computer program and learns how to edit tables. Now she has a ta 阅读全文
posted @ 2017-05-03 18:19 zxzhang 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 传送门 Description After the fourth season Sherlock and Moriary have realized the whole foolishness of the battle between them and decided to continue th 阅读全文
posted @ 2017-05-03 17:11 zxzhang 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 传送门 Description Misha hacked the Codeforces site. Then he decided to let all the users change their handles. A user can now change his handle any numb 阅读全文
posted @ 2017-05-03 01:14 zxzhang 阅读(303) 评论(0) 推荐(0) 编辑