摘要: ~A题 A. Cards time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output There are n cards (n is even 阅读全文
posted @ 2016-08-01 16:11 sweat123 阅读(236) 评论(0) 推荐(0) 编辑
摘要: Prince and PrincessInput: Standard Input Output: Standard Output Time Limit: 3 Seconds In an n x n chessboard, Prince and Princess plays a game. The s 阅读全文
posted @ 2016-07-26 19:54 sweat123 阅读(301) 评论(0) 推荐(0) 编辑
摘要: Error Curves Time Limit: 4000/2000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 4928 Accepted Submission(s): 1867 Pr 阅读全文
posted @ 2016-07-15 16:28 sweat123 阅读(824) 评论(0) 推荐(0) 编辑
摘要: 转自: http://blog.csdn.net/acdreamers/article/details/9989197 首先来说说三分的概念: 二分是把区间分为长度相等的两段,三分则是把区间分为长度相等的三段,进行查找,这样的查找称为三分查找,三分查找通 常用来迅速确定最值。 众所周知,二分算法的要 阅读全文
posted @ 2016-07-15 16:24 sweat123 阅读(264) 评论(0) 推荐(0) 编辑
摘要: Sona Time Limit:5000MS Memory Limit:65535KB 64bit IO Format: Submit Status Practice NBUT 1457 Sona Submit Status Practice NBUT 1457 Appoint descriptio 阅读全文
posted @ 2016-07-15 10:07 sweat123 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 小Z的袜子(hose) Time Limit:20000MS Memory Limit:265216KB 64bit IO Format:%lld & %llu Submit Status Practice HYSBZ 2038 小Z的袜子(hose) Submit Status Practice  阅读全文
posted @ 2016-07-14 20:18 sweat123 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 网上百度了一发,这个算法是一个叫莫涛的大牛研究出来的 Orz~ 看了一些牛牛们的博客,也大概理解了这个算法。 先说这个算法的作用吧: 莫队算法能够在O(n^1.5)的复杂度内求出区间[L,R]中某一个数字出现的次数。但是操作是离线的,因为这个算法的就是根据这个性质来的。 如果我们已经知道了区间[L, 阅读全文
posted @ 2016-07-14 20:15 sweat123 阅读(469) 评论(0) 推荐(0) 编辑
摘要: Network Time Limit: 2000MS Memory Limit: 65536K Total Submissions: 4478 Accepted: 1292 Description Yixght is a manager of the company called SzqNetwor 阅读全文
posted @ 2016-07-14 09:30 sweat123 阅读(642) 评论(0) 推荐(0) 编辑
摘要: Network Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission(s): 903 Accepted Submission(s): 379 Problem 阅读全文
posted @ 2016-07-13 15:27 sweat123 阅读(312) 评论(0) 推荐(0) 编辑
摘要: Connections between cities Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8857 Accepted Submis 阅读全文
posted @ 2016-07-13 11:23 sweat123 阅读(681) 评论(0) 推荐(0) 编辑