有些內容使用中英雙語,有些只有英文或中文。歡迎使用與分享任何內容,但先來信告知並標示此部落格為出處。
Some parts use both Chinese and English, but some parts use only one language. Feel free to share, but please contact me first and list this blog as your reference.
顯示具有 GCD 標籤的文章。 顯示所有文章
顯示具有 GCD 標籤的文章。 顯示所有文章

2014年5月11日 星期日

Google Code Jam - Round 1C 2014 - Problem A. Part Elf (for small and large)

The following program is my ACcepted code for
GCJ-Round 1C 2014-  A. Part Elf.

This program is correct for the small and large input.
It's a for everybody to learn and discuss.
If there is any mistake or comment, please let me know.  :D

此乃 GCJ-Round 1C 2014-  A. Part Elf.的AC code!
這份程式在小跟大的測試資料都是正確的!
歡迎一同討論學習,如有錯誤與任何建議請留言 : )

2014年3月19日 星期三

NTHU OJ - 7492 - 最後的紅線!(II)

The following program is my ACcepted code for NTHU-7492 .
It's a for everybody to learn and discuss.
If there is any mistake or comment, please let me know.  :D

此乃NTHU 7492 的AC code!
歡迎一同討論學習,如有錯誤與任何建議請留言 : )


一看題目就知道找兩個數字的最小公倍數... 

我用先找到最大公因數(GCD),再藉此算出最小公倍數!

2014年2月13日 星期四

UVa OJ - 10193 All You Need Is Love

The following program is my ACcepted code for UVA-10193 .
It's a for everybody to learn and discuss.
If there is any mistake or comment, please let me know.  :D

此乃UAV 10193 的AC code!
歡迎一同討論學習,如有錯誤與任何建議請留言 : )

點這裡看題目 Click here to see this Problem!