24h購物| | PChome| 登入
2014-04-18 22:56:27
2013-03-10 14:23:05

[UVA][正方體展開圖] 10024 - Curling up the cube

Curling up the cube A paper cube can be made up from six paper squares Given an projection (map) of the cube, you are to determine its correctness. A projection is correct, if a cube can be ma...

2013-03-10 12:19:32

[組合語言][練習] 九九乘法表


練習使用 for 迴圈,同時使用兩層 for 迴圈的操作。會發現 jump 的指令不能跳躍太多行,網路上查是 -128-127,應該是 byte 為單位的指令長度。使用 push 暫存第一個迴圈的值,第二個迴圈結束後,在 pop 回來,並且 j...

2013-03-10 11:30:09

[組合語言][練習] Hello, World!


用 EDI (index register) 記錄 string 的位址。用 ECX 計數 for 迴圈要跑幾次 (跑 string.length 次)。每跑一次 EDI += BYTE 的大小。call WriteChar 印出 AL 裡面的值TITLE hello_wordINCLUDE Irvine32.inc.datastr...

2013-03-09 14:46:00

[2013/3/9] 一句話,記錄每一天


「如何一切都合情合理,那這世界也沒值得追求的事物」-暴風雨的體悟「還要更快,直到 Rank 1,但我輸了。」-UVa Rank 1 的爭鬥「XXX,你今天怎麼特別早睡?」 「因為我失去人生的目標。」-早睡的理由「我們之間之...

2013-03-09 10:23:01

[組合語言][作業] 第一支可以跑的程式


—Declare: (if student ID = 995202053) ◦DigitA db 0 ◦DigitB db 5 ◦DigitC db 3 ◦MyId dw ? ◦ —DigitA to DigitC are initialized with the last 3 digits of your student...

2013-03-09 10:06:20

[討論][技巧深入] 100 - The 3n + 1 problem


100 - The 3n + 1 problem 新手入手 UVa 的第一題,可以很簡單,也可以很困難。這一份報告,是因為一門課-程式設計研討專題 何錦文 教授 而製作的。報告人:本人,請多多包涵。[討論][技巧深入] 100 - The 3n + 1 p...

2013-03-09 09:53:05

如何加快 printf("%d") 在解題時的使用

今日探討:「如何加快 printf("%d") 在解題時的使用?」 必要條件:假如的數字相當頻繁且重複,而且小於某個定值。 使用 char [max_number][max_digit] 記錄所有可能輸出。 最後使用 printf("%s") 速度快 10 ms 不到...

2013-03-09 09:48:14

[組合語言] 初步-debug 環境 Windbg


下載整個檔案包。這裡我就盜用助教的解說 ppt 了。1. 將 asm 2009 放在 D 槽,將 Irvine 放在 C 槽。原因很簡單,為了之後編譯可以直接點 make.bat 使用批次檔一次完成編譯,因此如果不想這麼放,將 .bat 檔的環境內...

2013-03-05 19:26:41

[ZJ][單調隊列] a605. 交錯和

內容 : 給定一個整數數列 <an>,考慮下標數列 <bm>,其中 m≠0 且 1≦b1<b2<...<bm≦n,我們定義交錯和 σb = ab1-ab2+ab3-ab4+...。已知 bi+1-bi≦δ,試求 σb 的最大值。 ...

2013-03-03 16:10:12

[UVA][字串處理] 11048 - Automatic Correction of Misspellings

2006/2007 ACM International Collegiate Programming Contest University of Ulm Local Contest Automatic correction of misspellings Some text editors offer a feature to correct words which seem...

2013-03-03 16:07:57

[UVA][SA] 11107 - Life Forms

Problem C: Life Forms You may have wondered why most extraterrestrial life forms resemble humans, differing by superficial traits such as height, colour, wrinkles, ears, eyebrows and the like. A f...

2013-03-02 19:18:27

[UVA][dp][第二種] 10149 - Yahtzee

Problem A - Yahtzee The game of Yahtzee involves 5 dice, which are thrown in 13 rounds. A score card contains 13 categories; each round may be scored in a category of the player's choosing, but ...

2013-03-02 09:49:18

[UVA][SA後綴數組] 10234 - Frequent Substrings

Problem F: Frequent Substrings You are working for the R&D department of International Embedded Equipments Enterprise (IEEE). One day, your boss calls you up and tells this:"Yes, I th...

2013-03-01 22:11:35

[ZJ][BIT+掃描線] a457. TOI2010 第五題:餐廳評鑑


內容 :   台灣是吃的王國,到處都有好吃的餐廳。有 鑑於此,身為雜誌編輯的小明,決定每週出一本餐廳週刊專門介紹各地值得推薦的好餐廳;每一本週刊由一名特派員負責到各個地區的餐廳親身體驗...

2013-02-28 12:09:28

[UVA][dp&greedy] 12172 - Matchsticks

Matchsticks are ideal tools to represent numbers. A common way to represent the ten decimal digits with matchsticks is the following: This is identical to how numbers are displayed on an o...

第一頁      ‹上一頁       51 .  52 .  53 .  54 .  55 .  56 .  57 .  58 .  59 .  60 .      下一頁›      最末頁
«上十頁      第 54 / 142 頁 , 共 2116 筆       下十頁»      
TOP