2013年2月15日

Somali Pirates(水题)

摘要: Somali PiratesTime Limit: 1 Second Memory Limit: 32768 KBIt is said that the famous Somali Pirates hate digits. So their QQ passwords never contain any digit. Given some lines of candidate passwords, you are asked to delete all the digits in the passwords and print other characters in their origi... 阅读全文

posted @ 2013-02-15 16:29 铁树银花 阅读(448) 评论(0) 推荐(0) 编辑

Who is Older?(水题)

摘要: Who is Older?Time Limit: 1 Second Memory Limit: 32768 KBJavaman and cpcs are arguing who is older. Write a program to help them.InputThere are multiple test cases. The first line of input is an integer T (0 < T <= 1000) indicating the number of test cases. Then T test cases follow. The i-th li 阅读全文

posted @ 2013-02-15 16:17 铁树银花 阅读(644) 评论(0) 推荐(0) 编辑

Compromise(求解最长公共子序列并输出)

摘要: CompromiseTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 5181Accepted: 2361Special JudgeDescriptionIn a few months the European Currency Union will become a reality. However, to join the club, the Maastricht criteria must be fulfilled, and this is not a trivial task for the countries (mayb 阅读全文

posted @ 2013-02-15 13:41 铁树银花 阅读(266) 评论(0) 推荐(0) 编辑

warning: name lookup of `i' changed

摘要: 出错现场:int main(){ int i; for(int i = 0; i < 10; i++) ……}i 这个变量名重复使用 阅读全文

posted @ 2013-02-15 12:48 铁树银花 阅读(1422) 评论(0) 推荐(0) 编辑

导航