上一页 1 2 3 4 5 6 ··· 57 下一页

2017年7月30日

Go语言实现的素数筛选程序

摘要: 通过这个例子可以了解数组的定义及其使用、切片的定义及其使用。同时,也可以了解变量的定义,各种控制语句的使用,类型的转换等。这里给出的程序,计算1000以内的所有素数,输出的每一行是序号+素数。Go语言程序:// prime project main.gopackage... 阅读全文

posted @ 2017-07-30 00:04 海岛Blog 阅读(245) 评论(0) 推荐(0)

2017年7月29日

Go语言的map以及sort

摘要: 通过这个例子了解map的使用。Go语言程序:// map project main.gopackage mainimport ( "fmt" "sort")func main() { var countryCapitalMap map[string]string /*... 阅读全文

posted @ 2017-07-29 11:55 海岛Blog 阅读(1251) 评论(0) 推荐(0)

Go语言的big包实现大整数运算

摘要: 程序虽然写出来了,但是不知道如何用一个大数(例如100位的大数)去初始化一个大数变量,比较遗憾!Go语言程序:// bigint project main.gopackage mainimport ( "fmt" "math" "math/big")func main... 阅读全文

posted @ 2017-07-29 10:16 海岛Blog 阅读(3774) 评论(0) 推荐(0)

2017年7月28日

HDU5100 Chessboard【组合数学】

摘要: ChessboardTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1222 Accepted Sub... 阅读全文

posted @ 2017-07-28 09:44 海岛Blog 阅读(170) 评论(0) 推荐(0)

HDU5143 NPY and arithmetic progression【暴力】

摘要: NPY and arithmetic progressionTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): ... 阅读全文

posted @ 2017-07-28 09:19 海岛Blog 阅读(209) 评论(0) 推荐(0)

UVALive5402 UVA579 Clock Hands【水题】

摘要: The medieval interest in mechanical contrivances is well illustrated by the development of the mechanicalclock, the oldest of which ... 阅读全文

posted @ 2017-07-28 01:40 海岛Blog 阅读(165) 评论(0) 推荐(0)

UVA11799 Horror Dash【求极值+水题】

摘要: It is that time of the year again! Colorful balloons and brightly coloredbanners spread out over your entire neighborhood for just thi... 阅读全文

posted @ 2017-07-28 01:21 海岛Blog 阅读(178) 评论(0) 推荐(0)

2017年7月27日

HDU1017 ZOJ1152 A Mathematical Curiosity【暴力】

摘要: A Mathematical CuriosityTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 42341 ... 阅读全文

posted @ 2017-07-27 23:40 海岛Blog 阅读(231) 评论(0) 推荐(0)

UVALive2536 POJ1248 HDU1015 ZOJ1403 Safecracker【密码+暴力】

摘要: SafecrackerTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 3277 Accepted: 1741Description"The item is locked in a Klein safe... 阅读全文

posted @ 2017-07-27 22:41 海岛Blog 阅读(192) 评论(0) 推荐(0)

POJ1284 Primitive Roots【原根】

摘要: Primitive RootsTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 4361 Accepted: 2568DescriptionWe say that integer x, 0 #inclu... 阅读全文

posted @ 2017-07-27 22:07 海岛Blog 阅读(153) 评论(0) 推荐(0)

UVA11340 Newspaper【输入流+map】

摘要: News agency pays money for articles according to some rules. Each character has its own value (somecharacters may have value equals to... 阅读全文

posted @ 2017-07-27 10:23 海岛Blog 阅读(159) 评论(0) 推荐(0)

HDU1716 排列2【全排列+输出格式】

摘要: 排列2Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8608 Accepted Submission... 阅读全文

posted @ 2017-07-27 09:37 海岛Blog 阅读(347) 评论(0) 推荐(0)

POJ3187 Backward Digit Sums【全排列+暴力】

摘要: Backward Digit SumsTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 7633 Accepted: 4397DescriptionFJ and his cows enjoy playi... 阅读全文

posted @ 2017-07-27 08:37 海岛Blog 阅读(137) 评论(0) 推荐(0)

HDU1755 A Number Puzzle【全排列+暴力】

摘要: A Number PuzzleTime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1449 Accepte... 阅读全文

posted @ 2017-07-27 00:13 海岛Blog 阅读(149) 评论(0) 推荐(0)

2017年7月26日

UVALive4536 POJ3824 HDU3328 Flipper【模拟+堆栈】

摘要: FlipperTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 106 Accepted: 52DescriptionLittle Bobby Roberts (son of Big Bob, of P... 阅读全文

posted @ 2017-07-26 22:55 海岛Blog 阅读(202) 评论(0) 推荐(0)

UVA673 Parentheses Balance【堆栈+输入流】

摘要: You are given a string consisting of parentheses () and []. A string of this type is said to be correct:(a) if it is the empty strin... 阅读全文

posted @ 2017-07-26 21:30 海岛Blog 阅读(146) 评论(0) 推荐(0)

HDU1004 ZOJ2104 Let the Balloon Rise【MAP】

摘要: Let the Balloon RiseTime Limit: 2 Seconds Memory Limit: 65536 KBContest time again! How excited it is to see balloons floating ar... 阅读全文

posted @ 2017-07-26 20:59 海岛Blog 阅读(138) 评论(0) 推荐(0)

UVALive3135 UVA1203 POJ2051 ZOJ2212 Argus【优先队列】

摘要: ArgusTime Limit: 1000MS Memory Limit: 30000KTotal Submissions: 11450 Accepted: 5545DescriptionA data stream is a real-time, continuous... 阅读全文

posted @ 2017-07-26 20:31 海岛Blog 阅读(165) 评论(0) 推荐(0)

2017年7月25日

HDU3785 寻找大富翁【优先队列】

摘要: 寻找大富翁Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7433 Accepted Submissi... 阅读全文

posted @ 2017-07-25 23:56 海岛Blog 阅读(183) 评论(0) 推荐(0)

HDU1873 看病要排队【模拟+优先队列】

摘要: 看病要排队Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10332 Accepted Submiss... 阅读全文

posted @ 2017-07-25 23:36 海岛Blog 阅读(324) 评论(0) 推荐(0)

HDU1075 What Are You Talking About【MAP】

摘要: What Are You Talking AboutTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 102400/204800 K (Java/Others)Total Submission(s): 2... 阅读全文

posted @ 2017-07-25 22:35 海岛Blog 阅读(198) 评论(0) 推荐(0)

HDU1896 Stones【模拟+优先队列】

摘要: StonesTime Limit: 5000/3000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 3015 Accepted Submiss... 阅读全文

posted @ 2017-07-25 21:50 海岛Blog 阅读(206) 评论(0) 推荐(0)

HDU1434 幸福列车【模拟+优先队列】

摘要: 幸福列车Time Limit: 20000/10000 MS (Java/Others) Memory Limit: 131070/65535 K (Java/Others)Total Submission(s): 2690 Accepted Submis... 阅读全文

posted @ 2017-07-25 20:52 海岛Blog 阅读(170) 评论(0) 推荐(0)

HDU5688 Problem D【字符串排序+MAP】

摘要: Problem DTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 820 Accepted Submi... 阅读全文

posted @ 2017-07-25 19:59 海岛Blog 阅读(234) 评论(0) 推荐(0)

HDU5479 Scaena Felix【堆栈+输入流】

摘要: Scaena FelixTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1041 Accepted S... 阅读全文

posted @ 2017-07-25 10:05 海岛Blog 阅读(208) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 ··· 57 下一页

导航