qeatzy

2015年6月16日

hdu 1039 (string process, fgets, scanf, neat utilization of switch clause) 分类: hdoj 2015-06-16 22:15 38人阅读 评论(0) 收藏

摘要: (string process, fgets, scanf, neat utilization of switch clause) simple problem, simple code.#include #include #define MAXLEN 22char password... 阅读全文

posted @ 2015-06-16 22:15 qeatzy 阅读(123) 评论(0) 推荐(0)

hdu 1036 (I/O routines, fgets, sscanf, %02d, rounding, atoi, strtol) 分类: hdoj 2015-06-16 19:37 32人阅读 评论(0) 收藏

摘要: thanks to http://stackoverflow.com/questions/2144459/using-scanf-to-accept-user-input and http://stackoverflow.com/questions/456303/how-to-v... 阅读全文

posted @ 2015-06-16 19:37 qeatzy 阅读(261) 评论(0) 推荐(0)

hdu 1034 (preprocess optimization, property of division to avoid if, decreasing order process) 分类: hdoj 2015-06-16 13:32 39人阅读 评论(0) 收藏

摘要: IMO, version 1 better than version 2, version 2 better than version 3. make some preprocess to make you code simple and efficient. Here divide... 阅读全文

posted @ 2015-06-16 13:32 qeatzy 阅读(111) 评论(0) 推荐(0)

hdu 1035 (usage of sentinel, proper utilization of switch and goto to make code neat) 分类: hdoj 2015-06-16 12:33 28人阅读 评论(0) 收藏

摘要: as Scott Meyers said in his book Effective STL, “My advice on choosing among the sorting algorithms is to make your selection based on what y... 阅读全文

posted @ 2015-06-16 12:33 qeatzy 阅读(118) 评论(0) 推荐(0)

导航