摘要: 博客停了差不多三个月, 虽然这一段时间在学算法, 但从来没有写博客。 今天看了一上午的快速幂,突然想写写博客, 增加一下自己的记忆!这个博文知识简单介绍一下算法中取余的原因 1 至于快速幂的概念不详细记录了。当我们想求a的b次幂对c取余时,我们会直接想到用这个算法:int ans = 1; f... 阅读全文
posted @ 2015-08-24 15:56 李京泽 阅读(4649) 评论(0) 推荐(0) 编辑
摘要: 数据的交换输出Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 67669 Accepted Submission(s): 2... 阅读全文
posted @ 2015-05-27 09:20 李京泽 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 偶数求和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 55669 Accepted Submission(s): 2427... 阅读全文
posted @ 2015-04-17 14:56 李京泽 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 青年歌手大奖赛_评委会打分Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 56915 Accepted Submission(... 阅读全文
posted @ 2015-04-16 23:06 李京泽 阅读(271) 评论(2) 推荐(0) 编辑
摘要: #include#includeint main(){int n,i,j;printf("---开始打印符号--\n");while(scanf("%d",&n)!=EOF){for(i=1;i=1;i--){for(j=1;j<=(n-i);j++){printf(" ");}for(j=n-i+... 阅读全文
posted @ 2015-04-11 20:24 李京泽 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 蟠桃记Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 41117 Accepted Submission(s): 30915P... 阅读全文
posted @ 2015-04-11 20:22 李京泽 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 素数判定Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 87861 Accepted Submission(s): 3069... 阅读全文
posted @ 2015-04-07 23:18 李京泽 阅读(285) 评论(0) 推荐(0) 编辑
摘要: 多项式求和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 50228 Accepted Submission(s): 2927... 阅读全文
posted @ 2015-04-07 20:57 李京泽 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 水仙花数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 117385 Accepted Submission(s): 347... 阅读全文
posted @ 2015-04-06 18:31 李京泽 阅读(180) 评论(0) 推荐(0) 编辑
摘要: 求数列的和Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 53004 Accepted Submission(s): 326... 阅读全文
posted @ 2015-04-06 18:25 李京泽 阅读(269) 评论(0) 推荐(0) 编辑