代码改变世界

URL和URI

2016-10-13 13:48 by koujiao的蒻苣, 239 阅读, 0 推荐, 收藏, 编辑
摘要:参见:https://tools.ietf.org/html/rfc3986#section-1.1 URL是Uniform Resource Locator的缩写,即统一资源定位器,它是一个识别Internet中哪里有信息资源,并且将 Internet提供的服务统一编址的系统。通过URL可以到达任 阅读全文

排序算法

2016-04-17 14:00 by koujiao的蒻苣, 213 阅读, 0 推荐, 收藏, 编辑
摘要:排序方法 平均情况 最好情况 最坏情况 辅助空间 稳定性冒泡排序 O(n^2) O(n) O(n^2) O(1) 稳定选择排序 O(n^2) O(n^2) O(n^2) O(1) 不稳定插入排序 O(n^2) O(n) O(n^2) O(1) 稳定希尔排序O(n*log(n))~O(n^2) O(n 阅读全文

codeforce#347div2 C

2016-04-17 13:19 by koujiao的蒻苣, 208 阅读, 0 推荐, 收藏, 编辑
摘要:C. International Olympiad time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output C. Internationa 阅读全文

codeforce#347div2 B

2016-04-17 13:09 by koujiao的蒻苣, 150 阅读, 0 推荐, 收藏, 编辑
摘要:B. Rebus time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given a rebus of form ? 阅读全文

hdu 1695 gcd

2016-04-17 13:05 by koujiao的蒻苣, 193 阅读, 0 推荐, 收藏, 编辑
摘要:容斥原理: 所有不与x互素的数的个数= 1个因子倍数的个数 - 2个因子乘积的倍数的个数 + 3个……-…… 给你一个正整数N,确定在1到N之间有多少个可以表示成M^K(K>1)的数。 打表60以内的素数,然后容斥 阅读全文

hdu 1812

2016-04-17 12:43 by koujiao的蒻苣, 308 阅读, 0 推荐, 收藏, 编辑
摘要:Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1963 Accepted Submission(s): 529 Problem Descript 阅读全文