2013年11月25日 星期一

[筆記]程式要怎麼寫?

在學校當TA時,常常會被問到一個問題。

相信有在解CPE、UVA或高中生程式問題的朋友,身邊應該都會有這樣的初學者會問這樣的問題-「程式要怎麼寫?」


2013年9月6日 星期五

[導覽]解題快速搜索


**  按Ctrl+F輸入題目關鍵字或題號可增加搜尋效率喔!!



A - Doom's Day AlgorithmCPE22801、UVA12019

The Hotel with Infinite RoomsCPE 10417、UVA 10170

Odd SumCPE 10453、UVA 10783

You can say 11.CPE 10460、UVA 10929

The 3n + 1 ProblemCPE 10400、UVA 100

Summing DigitsCPE 10473、UVA 11332

Back to High School PhysicsCPE 10411、UVA 10071

Decode the Mad ManCPE 10425、UVA 10222

Funny Encryption MethodCPE 10403、UVA 10019

Beat the SpreadCPE 10454、UVA 10812

Square NumbersCPE 10480、UVA 11461

Common PermutationCPE 10567、UVA 10252

TeX Quots-CPE 22131、UVA 272


Hashmat the Brave Warrior-CPE10407、UVA10055

Parity-CPE 10461、UVA 10931
  
Let Me Count The Ways-UVA 357


Jolly Jumpers-CPE 10405、UVA 10038


Simply Emirp-CPE 10428、UVA 10235


ProductCPE10526、UVA10106


What's Cryptanalysis? -CPE 10402、UVA 10008


Vito's family -CPE 10406、UVA 10041

Tell me the frequencies! -CPE 10410、UVA 10062


Fibonaccimal Base - CPE 10401、UVA 948 

WERTYU- CPE 10412、 UVA 10082


What is the Median? CPE  10527、UVA 10107

Ones-CPE 10532、UVA 10127 

Divide, But Not Quite Conquer!-CPE 10419、UVA 10190


Nice Licence Plates-UVA 12602

Very Easy!-UVA 10523
 

By 小K  2014/08/21更新

2013年7月23日 星期二

[UVA]Decode the Mad Man

CPE 10425、UVA 10222程式解題。






























解題觀念:

這題老實說我剛開始完全不懂......因為我想像力沒有那麼豐富聯想力也沒有那麼強= =

原來只是要你輸出你所按下的字母,再往左邊數兩個的那個字母而已......
(嗯?我怎麼知道的? 好吧~是學長告訴我的....)

所以這題你必須要建立鍵盤對照表利用字串去建立

而且輸出字母皆為小寫,所以要注意大小寫轉換

再來就是非鍵盤對應符號(例如空白鍵)不需做改變,保持原樣輸出即可。



解題步驟:

2013年7月11日 星期四

[UVA]The Hotel with Infinite Rooms

CPE 10407、UVA 10170程式解題。

*在這裡所貼的程式碼僅是提供解決方法,有可能不是正確答案。
  因為有些題目的測資小K可能沒去考慮到,但至少可以保證最正常的測資跑起來是正確的!
































解題觀念: