07 2017 档案

UVALive5520 UVA305 POJ1012 HDU1443 Joseph【数学计算+打表】
摘要:JosephTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 54650 Accepted: 20912DescriptionThe Joseph's problem is notoriously kn... 阅读全文

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

Go语言的素数对象编程实现及其使用
摘要:有关Go语言的面向对象编程,看了几本书,看了若干例子也没有太明白。太惭愧啊!后来看了一个例子,结合之前书上的内容,总算有点头绪了。然而,自己的程序写出来编译后还是出来不少问题。后来,在已有的程序的基础上,稍加改进,终于明白了一些问题。有关Go语言的面向对象编程,编过一... 阅读全文

posted @ 2017-07-30 23:31 海岛Blog 阅读(400) 评论(0) 推荐(0)

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

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

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)

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 阅读(169) 评论(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 阅读(207) 评论(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 阅读(176) 评论(0) 推荐(0)

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 阅读(230) 评论(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 阅读(191) 评论(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 阅读(151) 评论(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 阅读(346) 评论(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 阅读(135) 评论(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 阅读(147) 评论(0) 推荐(0)

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 阅读(143) 评论(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 阅读(137) 评论(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)

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 阅读(182) 评论(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 阅读(322) 评论(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 阅读(197) 评论(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 阅读(205) 评论(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 阅读(168) 评论(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 阅读(232) 评论(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 阅读(206) 评论(0) 推荐(0)

HDU4268 Alice and Bob【贪心+SET】
摘要:Alice and BobTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4719 Accepted... 阅读全文

posted @ 2017-07-25 09:41 海岛Blog 阅读(168) 评论(0) 推荐(0)

HDU3782 xxx定律【数学计算+水题】
摘要:xxx定律Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4872 Accepted Submissi... 阅读全文

posted @ 2017-07-24 21:20 海岛Blog 阅读(172) 评论(0) 推荐(0)

HDU2030 汉字统计【输入输出流】
摘要:汉字统计Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 47070 Accepted Submissi... 阅读全文

posted @ 2017-07-24 20:06 海岛Blog 阅读(163) 评论(0) 推荐(0)

HDU4509 湫湫系列故事——减肥记II【格式输入+存储设置+暴力+水题】
摘要:湫湫系列故事——减肥记IITime Limit: 5000/2000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 3458 Accepted ... 阅读全文

posted @ 2017-07-24 19:36 海岛Blog 阅读(297) 评论(0) 推荐(0)

HDU2567 寻梦【输入输出流】
摘要:寻梦Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8776 Accepted Submission(... 阅读全文

posted @ 2017-07-24 18:14 海岛Blog 阅读(212) 评论(0) 推荐(0)

HDU2562 奇偶位互换【输入输出流】
摘要:奇偶位互换Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7881 Accepted Submissi... 阅读全文

posted @ 2017-07-24 17:53 海岛Blog 阅读(292) 评论(0) 推荐(0)

HDU2561 第二小整数【序列处理】
摘要:第二小整数Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 11556 Accepted Submiss... 阅读全文

posted @ 2017-07-24 10:02 海岛Blog 阅读(148) 评论(0) 推荐(0)

HDU2551 竹青遍野【数学计算+水题】
摘要:竹青遍野Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6582 Accepted Submissio... 阅读全文

posted @ 2017-07-24 09:35 海岛Blog 阅读(227) 评论(0) 推荐(0)

HDU2548 两军交锋【数学计算+水题】
摘要:两军交锋Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6700 Accepted Submissio... 阅读全文

posted @ 2017-07-24 09:20 海岛Blog 阅读(174) 评论(0) 推荐(0)

HDU2500 做一个正气的杭电人【水题】
摘要:做一个正气的杭电人Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 12451 Accepted Sub... 阅读全文

posted @ 2017-07-24 09:02 海岛Blog 阅读(290) 评论(0) 推荐(0)

HDU2201 熊猫阿波的故事【概率】
摘要:熊猫阿波的故事Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7267 Accepted Submis... 阅读全文

posted @ 2017-07-24 08:48 海岛Blog 阅读(112) 评论(0) 推荐(0)

HDU2200 Eddy's AC难题【组合计算】
摘要:Eddy's AC难题Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5860 Accepted Su... 阅读全文

posted @ 2017-07-23 21:47 海岛Blog 阅读(95) 评论(0) 推荐(0)

HDU2178 猜数字【数学计算+水题】
摘要:猜数字Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 6888 Accepted Submission... 阅读全文

posted @ 2017-07-23 20:51 海岛Blog 阅读(321) 评论(0) 推荐(0)

HDU2156 分数矩阵【数学计算+水题】
摘要:分数矩阵Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 7729 Accepted Submissio... 阅读全文

posted @ 2017-07-23 19:17 海岛Blog 阅读(456) 评论(0) 推荐(0)

HDU2153 仙人球的残影【数学计算+水题】
摘要:仙人球的残影Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 8161 Accepted Submiss... 阅读全文

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

HDU1862 EXCEL排序【排序】
摘要:EXCEL排序Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 19807 Accepted Subm... 阅读全文

posted @ 2017-07-22 21:16 海岛Blog 阅读(245) 评论(0) 推荐(0)

HDU1859 最小长方形【水题】
摘要:最小长方形Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 10114 Accepted Submiss... 阅读全文

posted @ 2017-07-22 20:16 海岛Blog 阅读(236) 评论(0) 推荐(0)

HDU1407 测试你是否和LTC水平一样高【暴力】
摘要:测试你是否和LTC水平一样高Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 18855 Accepte... 阅读全文

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

HDU1283 最简单的计算机【模拟】
摘要:最简单的计算机Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 7774 Accepted Submis... 阅读全文

posted @ 2017-07-22 10:03 海岛Blog 阅读(224) 评论(0) 推荐(0)

HDU1235 统计同成绩学生人数【序列处理】
摘要:统计同成绩学生人数Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 21248 Accepted Sub... 阅读全文

posted @ 2017-07-22 08:18 海岛Blog 阅读(182) 评论(0) 推荐(0)

Vijos P1596 加法表【迭代】
摘要:加法表背景神奇的加法表~描述著名科学家卢斯为了检查学生对进位制的理解,他给出了如下的一张加法表,表中的字母代表数字。 例如: + L K V EL L K V EK K V E KLV V E KL KKE E KL KK KV其含义为:L+L=L,L+K=K,L+V... 阅读全文

posted @ 2017-07-15 17:49 海岛Blog 阅读(190) 评论(0) 推荐(0)

Vijos P1398 奖学金【排序】
摘要:描述某小学最近得到了一笔赞助,打算拿出其中一部分为学习成绩优秀的前5名学生发奖学金。期末,每个学生都有3门课的成绩:语文、数学、英语。先按总分从高到低排序,如果两个同学总分相同,再按语文成绩从高到低排序,如果两个同学总分和语文成绩都相同,那么规定学号小的同学排在前面,... 阅读全文

posted @ 2017-07-15 06:30 海岛Blog 阅读(203) 评论(0) 推荐(0)

HDU3188 Just A Triangle【水题】
摘要:Just A TriangleTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 2862 Accepte... 阅读全文

posted @ 2017-07-15 00:26 海岛Blog 阅读(204) 评论(0) 推荐(0)

POJ1731 Orders【全排列+字符串排序】
摘要:OrdersTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 10868 Accepted: 6517DescriptionThe stores manager has sorted all kinds... 阅读全文

posted @ 2017-07-15 00:08 海岛Blog 阅读(172) 评论(0) 推荐(0)

ZOJ3870 Team Formation【位运算+数学】
摘要:Team FormationTime Limit: 2 Seconds Memory Limit: 131072 KBFor an upcoming programming contest, Edward, the headmaster of Marjar ... 阅读全文

posted @ 2017-07-14 23:48 海岛Blog 阅读(151) 评论(0) 推荐(0)

UVA11988 Broken Keyboard (a.k.a. Beiju Text)【输入输出】
摘要:You’re typing a long text with a broken keyboard. Well it’s not so badly broken. The only problemwith the keyboard is that sometimes... 阅读全文

posted @ 2017-07-14 08:48 海岛Blog 阅读(170) 评论(0) 推荐(0)

UVA11645 Bits【位运算+大数】
摘要:A bit is a binary digit, taking a logical value of either “1” or “0” (also referred to as “true” or “false”respectively). And every de... 阅读全文

posted @ 2017-07-13 05:35 海岛Blog 阅读(156) 评论(0) 推荐(0)

ZOJ3880 Demacia of the Ancients【序列处理+水题】
摘要:Demacia of the AncientsTime Limit: 2 Seconds Memory Limit: 65536 KBThere is a popular multiplayer online battle arena game called... 阅读全文

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

ZOJ3869 Ace of Aces【序列处理】
摘要:Ace of AcesTime Limit: 2 Seconds Memory Limit: 65536 KBThere is a mysterious organization called Time-Space Administrative Bureau... 阅读全文

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

ZOJ3872 Beauty of Array【DP】
摘要:Beauty of ArrayTime Limit: 2 Seconds Memory Limit: 65536 KBEdward has an array A with N integers. He defines the beauty of an arr... 阅读全文

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

ZOJ3876 May Day Holiday【日期计算】
摘要:May Day HolidayTime Limit: 2 Seconds Memory Limit: 65536 KBAs a university advocating self-learning and work-rest balance, Marjar... 阅读全文

posted @ 2017-07-03 23:07 海岛Blog 阅读(284) 评论(0) 推荐(0)

UVA146 POJ1146 ID Codes【全排列】
摘要:ID CodesTime Limit: 1000MS Memory Limit: 10000KTotal Submissions: 6932 Accepted: 4115DescriptionIt is 2084 and the year of Big Brother... 阅读全文

posted @ 2017-07-03 04:24 海岛Blog 阅读(166) 评论(0) 推荐(0)

UVA10098 Generating Fast【全排列】
摘要:Generating permutation has always been an important problem in computer science. In this problemyou will have to generate the permutat... 阅读全文

posted @ 2017-07-03 04:01 海岛Blog 阅读(148) 评论(0) 推荐(0)

POJ1182 食物链【并查集】
摘要:食物链Time Limit: 1000MS Memory Limit: 10000KTotal Submissions: 72553 Accepted: 21542Description动物王国中有三类动物A,B,C,这三类动物的食物链构成了有趣的环形。A吃B, B吃... 阅读全文

posted @ 2017-07-02 23:09 海岛Blog 阅读(250) 评论(0) 推荐(0)

HDU1977 Consecutive sum II【数学计算+水题】
摘要:Consecutive sum IITime Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 3061 Acce... 阅读全文

posted @ 2017-07-02 20:40 海岛Blog 阅读(247) 评论(0) 推荐(0)

POJ2431 Expedition【贪心+优先队列】
摘要:ExpeditionTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 16324 Accepted: 4662DescriptionA group of cows grabbed a truck and... 阅读全文

posted @ 2017-07-02 19:50 海岛Blog 阅读(240) 评论(0) 推荐(0)

HDU2058 The sum problem【数学计算+枚举】
摘要:The sum problemTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 26343 Accept... 阅读全文

posted @ 2017-07-02 09:24 海岛Blog 阅读(392) 评论(0) 推荐(0)

HDU1868 Consecutive sum【数学计算+枚举】
摘要:Consecutive sumTime Limit: 5000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1590 Accepte... 阅读全文

posted @ 2017-07-02 08:47 海岛Blog 阅读(302) 评论(0) 推荐(0)

HDU2629 Identity Card【MAP+水题】
摘要:Identity CardTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4120 Accepted ... 阅读全文

posted @ 2017-07-02 00:06 海岛Blog 阅读(284) 评论(0) 推荐(0)

HDU1587 Flowers【水题】
摘要:FlowersTime Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4189 Accepted Submis... 阅读全文

posted @ 2017-07-01 23:34 海岛Blog 阅读(135) 评论(0) 推荐(0)

HDU1073 Online Judge【输入输出+字符串】
摘要:Online JudgeTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 8329 Accepted S... 阅读全文

posted @ 2017-07-01 23:16 海岛Blog 阅读(383) 评论(0) 推荐(0)

HDU5670 Machine【进制】
摘要:MachineTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1586 Accepted Submis... 阅读全文

posted @ 2017-07-01 10:45 海岛Blog 阅读(180) 评论(0) 推荐(0)

UVALive4167 HDU2700 Parity【水题】
摘要:ParityTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4842 Accepted Submiss... 阅读全文

posted @ 2017-07-01 00:35 海岛Blog 阅读(203) 评论(0) 推荐(0)

导航