上一页 1 ··· 6 7 8 9 10
摘要: 【Description】 John is the only priest in his town. September 1st is the John's busiest day in a year because there is an old legend in the town that t 阅读全文
posted @ 2013-01-22 22:00 zyy是一只超级大沙茶 阅读(283) 评论(0) 推荐(0)
摘要: 【Description】 Katu Puzzle is presented as a directed graph G(V, E) with each edge e(a, b) labeled by a boolean operator op (one of AND, OR, XOR) and a 阅读全文
posted @ 2013-01-22 21:49 zyy是一只超级大沙茶 阅读(920) 评论(0) 推荐(0)
摘要: 【Description】 liympanda, one of Ikki’s friend, likes playing games with Ikki. Today after minesweeping with Ikki and winning so many times, he is tire 阅读全文
posted @ 2013-01-22 21:35 zyy是一只超级大沙茶 阅读(628) 评论(3) 推荐(0)
摘要: 【题目描述】 [Special Judge] 根据宪法,Byteland民主共和国的公众和平委员会应该在国会中通过立法程序来创立。 不幸的是,由于某些党派代表之间的不和睦而使得这件事存在障碍。此委员会必须满足下列条件: (1)每个党派都在委员会中恰有1个代表, (2)如果2个代表彼此厌恶,则他们不能 阅读全文
posted @ 2013-01-22 21:16 zyy是一只超级大沙茶 阅读(1440) 评论(2) 推荐(0)
摘要: 组装 assemble 【题目描述】 数轴上有m个生产车间可以生产零件。一共有n种零件,编号为1~n。第i个车间的坐标为xi,生产第pi种零件(1<=pi<=n)。你需要在数轴上的某个位置修建一个组装车间,把这些零件组装起来。为了节约运输成本,你需要最小化cost(1)+cost(2)+…+cost 阅读全文
posted @ 2013-01-14 21:58 zyy是一只超级大沙茶 阅读(433) 评论(0) 推荐(0)
摘要: 编号 number 【题目描述】 你需要给一批商品编号,其中每个编号都是一个7位16进制数(由0~9,a~f组成)。为了防止在人工处理时不小心把编号弄错,要求任意两个编号至少由三个位置对应的数字不相同。第一个编号为0000000,第二个编号为不违反上述规定的前提下最小的编号,……,每次分配一个新编号 阅读全文
posted @ 2013-01-14 21:20 zyy是一只超级大沙茶 阅读(508) 评论(0) 推荐(0)
摘要: 位统计 bit 给出N个[0,65535]的整数,编程支持以下操作: 修改操作:C d,所有数增加d。如果超过65535,把结果模65536。0 <= d <= 65535 查询操作:Q i,统计有多少整数的第i位非0,换句话说,有多少个整数与2^i的“按位与”操作值为正。0 <= i <= 15 阅读全文
posted @ 2012-12-08 21:23 zyy是一只超级大沙茶 阅读(559) 评论(1) 推荐(0)
上一页 1 ··· 6 7 8 9 10