代码改变世界

Suzhou Adventure,hihocoder 1104

2015-08-16 21:09 by iun, 195 阅读, 0 推荐, 收藏, 编辑
摘要:时间限制:10000ms单点时限:1000ms内存限制:256MB描述Little Hi is taking an adventure in Suzhou now. There are N beautiful villages in Suzhou which are numbered from 1 ... 阅读全文

Google 2015 apac test Problem A, Seven-segment Display

2015-08-16 20:29 by iun, 370 阅读, 0 推荐, 收藏, 编辑
摘要:Problem A. Seven-segment Display This contest is open for practice. You can try every problem as many times as you like, though we won't keep track of... 阅读全文

Prime counting,sum of primes,leetcode,dp.

2015-07-16 17:13 by iun, 253 阅读, 0 推荐, 收藏, 编辑
摘要:主要参考 http://www.zhihu.com/question/29580448/answer/45218281https://projecteuler.net/thread=10;page=5 Lucy_Hedgehog的代码如果不用map,自己写hash函数会更快// 计算 Π(n-1)c... 阅读全文

hiho一下 第四十二周

2015-04-18 22:02 by iun, 260 阅读, 0 推荐, 收藏, 编辑
摘要:题目1 : 骨牌覆盖问题·二时间限制:10000ms单点时限:1000ms内存限制:256MB描述 上一周我们研究了2xN的骨牌问题,这一周我们不妨加大一下难度,研究一下3xN的骨牌问题?所以我们的题目是:对于3xN的棋盘,使用1x2的骨牌去覆盖一共有多少种不同的覆盖方法呢?首先我们可以肯定,奇数长... 阅读全文

编程之美2015资格赛

2015-04-17 23:41 by iun, 722 阅读, 0 推荐, 收藏, 编辑
摘要:题目1 : 2月29日时间限制:2000ms单点时限:1000ms内存限制:256MB描述给定两个日期,计算这两个日期之间有多少个2月29日(包括起始日期)。只有闰年有2月29日,满足以下一个条件的年份为闰年:1. 年份能被4整除但不能被100整除2. 年份能被400整除输入第一行为一个整数T,表示... 阅读全文