Q: http://uva.onlinejudge.org/external/101/10100.html
這題令人討厭的地方在於題目敘述不清
要不然其實不難
需注意的有兩點:
1. 輸出格式(......."you have to output a line starting with the case number right justified in a field width of two")
2. 除了字母和數字之外,其他字元都不能視為合法的字元(也就是說,一個單字裡面只能有字母或是數字)
搞定這兩點後就是單純的LCS problem了
文章標籤
全站熱搜