2018年12月23日

Bailian2973 Skew数【进制】

摘要: "2973:Skew数" 总时间限制: 1000ms 内存限制: 65536kB 描述 在 skew binary表示中, 第 k 位的值xk表示xk (2k+1 1)。 每个位上的可能数字是0 或 1,最后面一个非零位可以是2, 例如, 10120(skew) = 1 (25 1) + 0 (24 阅读全文

posted @ 2018-12-23 07:19 新海岛Blog 阅读(141) 评论(0) 推荐(0)

2018年12月22日

HDU6292 赛题分析【水题】

摘要: "赛题分析" Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 512000/512000 K (Java/Others) Total Submission(s): 1506 Accepted Submission(s): 637 Proble 阅读全文

posted @ 2018-12-22 16:55 新海岛Blog 阅读(93) 评论(0) 推荐(0)

UVA11300 Spreading the Wealth【水题】

摘要: A Communist regime is trying to redistribute wealth in a village. They have have decided to sit everyone around a circular table. First, everyone has 阅读全文

posted @ 2018-12-22 09:59 新海岛Blog 阅读(88) 评论(0) 推荐(0)

ZOJ1058 Currency Exchange【水题】

摘要: "Currency Exchange" Time Limit: 2 Seconds Memory Limit: 65536 KB When Issac Bernand Miller takes a trip to another country, say to France, he exchange 阅读全文

posted @ 2018-12-22 09:19 新海岛Blog 阅读(141) 评论(0) 推荐(0)

POJ2028 ZOJ2422 Terrible Sets【单调堆栈】

摘要: "Terrible Sets" Description Let N be the set of all natural numbers {0 , 1 , 2 , . . . }, and R be the set of all real numbers. wi, hi for i = 1 . . . 阅读全文

posted @ 2018-12-22 00:08 新海岛Blog 阅读(87) 评论(0) 推荐(0)

2018年12月21日

POJ1579 HDU1331 HDU1579 ZOJ1168 Function Run Fun【记忆化递归】

摘要: "Function Run Fun" Description We all love recursion! Don't we? Consider a three parameter recursive function w(a, b, c): if a 20 or b 20 or c 20, the 阅读全文

posted @ 2018-12-21 22:47 新海岛Blog 阅读(164) 评论(0) 推荐(0)

2018年12月19日

Bailian4148 生理周期【枚举+中国剩余定理】

摘要: "4148:生理周期" 描述 人生来就有三个生理周期,分别为体力周期、感情周期和智力周期,它们的周期长度分别为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应的方面表现出色。例如,在智力周期的高峰,人会思维敏捷,注意力容易高度集中。因为三个周期的长度不同,所以通常三个周期的高 阅读全文

posted @ 2018-12-19 08:49 新海岛Blog 阅读(170) 评论(0) 推荐(0)

2018年12月10日

POJ3980 取模运算【水题】

摘要: "取模运算" Description 编写一个C函数mod(int n, int m),实现取模运算% Input 输入包含多行数据 每行数据是两个整数a, b (1 int main(void) { int a, b; while(~scanf("%d%d", &a, &b)) printf("% 阅读全文

posted @ 2018-12-10 10:02 新海岛Blog 阅读(114) 评论(0) 推荐(0)

POJ3981 字符串替换【水题】

摘要: "字符串替换" Description 编写一个C程序实现将字符串中的所有"you"替换成"we" Input 输入包含多行数据 每行数据是一个字符串,长度不超过1000 数据以EOF结束 Output 对于输入的每一行,输出替换后的字符串 Sample Input you are what you 阅读全文

posted @ 2018-12-10 09:50 新海岛Blog 阅读(167) 评论(0) 推荐(0)

Bailian2820 Ancient Cryptogram【密码】

摘要: "2820:Ancient Cryptogram" 描述 In ancient wars, cryptogram was applied widely. There were two types of method to encrypt a string. The first one was rep 阅读全文

posted @ 2018-12-10 00:19 新海岛Blog 阅读(182) 评论(0) 推荐(0)

导航

// ... runAll: function() { this.resetPreCode(); hljs.initHighlightingOnLoad(); // 重新渲染,添加语法高亮 hljs.initLineNumbersOnLoad(); // 为代码加上行号 } // ...