POJ, UVa,Vijos Code: Github
posted @ 2013-06-17 22:50 happyac 阅读(325) | 评论 (0) | 编辑 收藏
int mod = 0; char ch; while (c = getchar()) mod = (mod*10 + ch-'0') % b
b
mod = ((mod<<8) + ch-'0') % b
posted @ 2013-06-17 16:33 happyac 阅读(1233) | 评论 (0) | 编辑 收藏
posted @ 2013-06-17 16:21 happyac 阅读(226) | 评论 (0) | 编辑 收藏
posted @ 2013-06-16 23:07 happyac 阅读(241) | 评论 (0) | 编辑 收藏
posted @ 2013-06-16 09:18 happyac 阅读(270) | 评论 (0) | 编辑 收藏
posted @ 2013-06-14 20:30 happyac 阅读(1123) | 评论 (0) | 编辑 收藏
std::map
std::set
std::vector
posted @ 2013-06-14 15:10 happyac 阅读(165) | 评论 (0) | 编辑 收藏
posted @ 2013-06-13 18:44 happyac 阅读(318) | 评论 (0) | 编辑 收藏
posted @ 2013-06-13 14:17 happyac 阅读(227) | 评论 (0) | 编辑 收藏
posted @ 2013-06-12 21:37 happyac 阅读(1302) | 评论 (0) | 编辑 收藏