ACM一個有很多題目,讓Programmer練習寫成是的網站。
評論有好有壞。
我還記得以前修計概的老師特別喜歡ACM,
他覺得好處多多,寫個200-300題上台清交研究所不是問題。
也有人覺得ACM只不過是在玩input/output的處理。
總而言之,程式寫出來總是好的。
另外我都用C寫code。
20111011
The C Programming Language
20110116
JJ的詮釋
無意間在mid9的直播聽到JJ 2010的新歌,沒想到他用原作的方式來詮釋這些歌,這張專輯真是非常棒。就來我們一起來欣賞吧。
1.愛笑的眼睛
(徐若瑄版)
(JJ版)
我覺得兩個人都唱的非常的棒!
2.只對你有感覺
(飛輪海 + Hebe版)
(JJ版)
跟飛輪海不熟 XD。
3.當你
(王心凌版)
(JJ版)
4.一眼萬年
(S.H.E.版)
(JJ版)
5.保護色
(張韶涵版)
(JJ版)
JJ版還有angela進來插花 XD。
6.握不住的他
(蕭蕭版)
(JJ版)
對這首歌的印象是1st星光大道楊宗緯有唱過。
7.心牆
(林貝芳版)
(JJ版)
8.我很想愛他
(TWINS版)
(JJ版)
阿Sa好正(誤)。
9.一生的愛
(李冰冰版,03:44開始)
(JJ版)
10.記得
(阿妹版)
(JJ版)
專輯資訊:
https://shopping.avex.com.tw/avex/Default.aspx?m=ProductDetail&ItemId=2986
1.愛笑的眼睛
(徐若瑄版)
(JJ版)
我覺得兩個人都唱的非常的棒!
2.只對你有感覺
(飛輪海 + Hebe版)
(JJ版)
跟飛輪海不熟 XD。
3.當你
(王心凌版)
(JJ版)
4.一眼萬年
(S.H.E.版)
(JJ版)
5.保護色
(張韶涵版)
(JJ版)
JJ版還有angela進來插花 XD。
6.握不住的他
(蕭蕭版)
(JJ版)
對這首歌的印象是1st星光大道楊宗緯有唱過。
7.心牆
(林貝芳版)
(JJ版)
8.我很想愛他
(TWINS版)
(JJ版)
阿Sa好正(誤)。
9.一生的愛
(李冰冰版,03:44開始)
(JJ版)
10.記得
(阿妹版)
(JJ版)
專輯資訊:
https://shopping.avex.com.tw/avex/Default.aspx?m=ProductDetail&ItemId=2986
20101109
[C] Ex3-4
The C Programming Language Exercise 3-4
題目:
In a two's complement number representation, our version of itoa does not handle the largest negative number, that is, the value of n equal to -(2 to the power (wordsize - 1)) . Explain why not. Modify it to print that value correctly regardless of the machine on which it runs.
解法:
也是有趣題!先把最小值 + 1,即可處理 XD。只附上itoa()。
題目:
In a two's complement number representation, our version of itoa does not handle the largest negative number, that is, the value of n equal to -(2 to the power (wordsize - 1)) . Explain why not. Modify it to print that value correctly regardless of the machine on which it runs.
解法:
也是有趣題!先把最小值 + 1,即可處理 XD。只附上itoa()。
[C] Ex3-3
The C Programming Language Exercise 3-3
題目:
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z . Arrange that a leading or trailing - is taken literally.
解法:
覺得還滿有趣的一題。判斷「-」是否為字串的第一或最後一個字元,再處理字母與數字問題即可。
A-A類的也要稍微判斷。
題目:
Write a function expand(s1,s2) that expands shorthand notations like a-z in the string s1 into the equivalent complete list abc...xyz in s2 . Allow for letters of either case and digits, and be prepared to handle cases like a-b-c and a-z0-9 and -a-z . Arrange that a leading or trailing - is taken literally.
解法:
覺得還滿有趣的一題。判斷「-」是否為字串的第一或最後一個字元,再處理字母與數字問題即可。
A-A類的也要稍微判斷。
訂閱:
文章 (Atom)