海岛Blog

海是无垠的,岛在海中是独立的,有一片自己的天空

UVALive5520 UVA305 POJ1012 HDU1443 Joseph【数学计算+打表+水题】

Joseph Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 54650   Accepted: 20912 Description The Joseph's problem is notoriousl...

2017-07-30 23:39:36

阅读数:863

评论数:0

Go语言的素数对象编程实现及其使用

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

2017-07-30 23:31:20

阅读数:281

评论数:0

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

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

2017-07-30 00:04:12

阅读数:587

评论数:0

Go语言的map以及sort

通过这个例子了解map的使用。 Go语言程序: // map project main.go package main import ( "fmt" "sort" ) func main() { var countryCapitalM...

2017-07-29 11:54:53

阅读数:2708

评论数:0

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

程序虽然写出来了,但是不知道如何用一个大数(例如100位的大数)去初始化一个大数变量,比较遗憾! Go语言程序: // bigint project main.go package main import ( "fmt" "math" "...

2017-07-29 10:15:46

阅读数:6849

评论数:0

HDU5100 Chessboard【组合数学】

ChessboardTime Limit: 2000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1222    Accepted Submission(s): 526...

2017-07-28 09:43:47

阅读数:646

评论数: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): 1505    Accepte...

2017-07-28 09:19:00

阅读数:421

评论数:0

UVALive5402 UVA579 Clock Hands【水题】

The medieval interest in mechanical contrivances is well illustrated by the development of the mechanical clock, the oldest of which is driven by wei...

2017-07-28 01:39:30

阅读数:583

评论数: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 this one occasion....

2017-07-28 01:20:43

阅读数:572

评论数:0

HDU1017 ZOJ1152 A Mathematical Curiosity【暴力+水题】

A Mathematical Curiosity Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 42341    Accepted S...

2017-07-27 23:40:16

阅读数:424

评论数:0

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

Safecracker Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 3277   Accepted: 1741 Description "The item is locked in a K...

2017-07-27 22:40:51

阅读数:836

评论数:0

POJ1284 Primitive Roots【原根】

Primitive Roots Time Limit: 1000MS   Memory Limit: 10000K Total Submissions: 4361   Accepted: 2568 Description We say t...

2017-07-27 22:06:34

阅读数:625

评论数: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 zero). Author ...

2017-07-27 10:23:16

阅读数:416

评论数:0

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

排列2 Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 8608    Accepted Submission(s): 3180 ...

2017-07-27 09:36:34

阅读数:553

评论数:0

POJ3187 Backward Digit Sums【全排列】

Backward Digit Sums Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 7633   Accepted: 4397 Description FJ a...

2017-07-27 08:36:38

阅读数:356

评论数:0

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

A Number Puzzle Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 1449    Accepted Submissio...

2017-07-27 00:13:15

阅读数:483

评论数:0

UVALive4536 POJ3824 HDU3328 Flipper【模拟+堆栈】

Flipper Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 106   Accepted: 52 Description Little Bobby Robert...

2017-07-26 22:54:39

阅读数:510

评论数: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 string(b) if A and B...

2017-07-26 21:30:21

阅读数:617

评论数:0

HDU1004 ZOJ2104 Let the Balloon Rise【MAP+水题】

Let the Balloon Rise Time Limit: 2 Seconds      Memory Limit: 65536 KB Contest time again! How excited it is to see balloons floating around. But ...

2017-07-26 20:59:05

阅读数:760

评论数:0

UVALive3135 UVA1203 POJ2051 ZOJ2212 Argus【优先队列+优先搜索】

Argus Time Limit: 1000MS   Memory Limit: 30000K Total Submissions: 11450   Accepted: 5545 Description A data stream is a real-time, contin...

2017-07-26 20:30:55

阅读数:698

评论数:0

提示
确定要删除当前文章?
取消 删除
关闭
关闭