摘要: Description . . . and so on . . . Unfortunately, Boudreaux's computer is very unreliable and crashes often. He could easily tell if a crash occurred b 阅读全文
posted @ 2018-09-08 21:13 flowphyl 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 题目描述 给出正整数n和k,计算G(n, k)=k mod 1 + k mod 2 + k mod 3 + … + k mod n的值,其中k mod i表示k除以i的余数。例如G(10, 5)=5 mod 1 + 5 mod 2 + 5 mod 3 + 5 mod 4 + 5 mod 5 …… + 阅读全文
posted @ 2018-09-08 16:49 flowphyl 阅读(197) 评论(1) 推荐(0) 编辑