原创 杭電OJ題 1753 大明A+B 解題報告

大明A+B Time Limit: 3000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 5651 

原创 ZOJ-2240 Run Length Encoding

Run Length Encoding Time Limit: 2 Seconds      MemoryLimit: 65536 KB Your task is towrite a program that performs a

原创 寒假學習總結

寒假學習總結            今天已經是二月的最後一天了,開學已經兩天了。在過去的一個寒假,雖然時間短暫,但多少有些收穫,現在對這個寒假的學習生活來一個小小的總結。          在寒假中,主要學習的是有關ACM的一些必須的算法

原创 杭電OJ題 1715 大菲波數 解題報告

大菲波數 Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 7529  

原创 ZOJ-1072 MicroprocessorSimulation

MicroprocessorSimulation Time Limit: 2 Seconds      MemoryLimit: 65536 KB Problem Consider a small microprocessor t

原创 直接插入排序

直接插入排序 直接插入排序是每次把無序序列中的第一個元素,然後插入到有序序列的合適位置,即排序過程中會出現兩部分,一部分是已排序的有序序列,還有一部分是待排序的無序序列。 排序過程通過一個二重循環實現。外層循環確定下一個待排序的值,即無

原创 ZOJ-1824 Maze Traversal

Maze Traversal Time Limit: 2 Seconds      MemoryLimit: 65536 KB Acommon problem in artificial intelligence is negot

原创 ZOJ-1737 Unreliable Message

Unreliable Message Time Limit: 2 Seconds      MemoryLimit: 65536 KB TheKing of a little Kingdom on a little island

原创 快速排序及其變種算法

快速排序 快速排序(Quicksort)是對冒泡排序的一種改進。由C. A. R. Hoare在1962年提出。它的基本思想是:通過一趟排序將要排序的數據分割成獨立的兩部分,其中一部分的所有數據都比另外一部分的所有數據都要小,然後再按

原创 雞尾酒排序

雞尾酒排序(雙端冒泡排序) 雞尾酒排序也叫定向冒泡排序,攪拌排序等,是冒泡排序的一種變形。雞尾酒排序是在兩端開始排序的,而冒泡排序時在一端進行的。 雞尾酒排序的C++實現:   /***************************

原创 ZOJ-1986 Bridging Signals

Bridging Signals Time Limit: 2 Seconds      MemoryLimit: 65536 KB 'Oh no, they'vedone it again', cries the chief de

原创 ZOJ-1208 Roll the Die!

Roll the Die! Time Limit: 2 Seconds      MemoryLimit: 65536 KB A gambler's die(Figure 1) is a cube whose six faces

原创 ZOJ-1862 Mine Sweeper

Mine Sweeper Time Limit: 2 Seconds      MemoryLimit: 65536 KB The gameMinesweeper is played on an n by n grid. In t

原创 杭電OJ題 1047 Integer Inquiry 解題報告

Integer Inquiry Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others) Total Submission

原创 ZOJ-1085 Alien Security

Alien Security Time Limit: 2 Seconds      Memory Limit: 65536 KB You are in charge of security at a top-secret govern