摘要: 题目描述 对于任何正整数x,其约数的个数记作g(x)。例如g(1)=1、g(6)=4。 如果某个正整数x满足:g(x)>g(i) 0<i<x,则称x为反质数。例如,整数1,2,4,6等都是反质数。 现在给定一个数N,你能求出不超过N的最大的反质数么? 输入输出格式 输入格式: 一个数N(1<=N<= 阅读全文
posted @ 2018-10-12 18:54 qseer 阅读(201) 评论(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 + 阅读全文
posted @ 2018-10-12 17:24 qseer 阅读(233) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John has decided to reward his cows for their hard work by taking them on a tour of the big city! The cows must decide how best to 阅读全文
posted @ 2018-10-12 16:20 qseer 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Despite their innate prudence, the cows took a beating in the home mortgage market and now are trying their hand at stocks. Happily, Bessie is pr 阅读全文
posted @ 2018-10-12 11:34 qseer 阅读(544) 评论(0) 推荐(0) 编辑
摘要: 题目描述 Description 最经,skyzhong得到了一本好厉害的字典,这个字典里整整有n个单词(1<=n<=200000) 现在skyzhong需要在字典里查询以某一段字母开头的单词 如:skyzhong想查询a 那么只要是a开头的单词就可以了 skyzhong只想知道里面有没有这一个单词 阅读全文
posted @ 2018-10-12 09:34 qseer 阅读(195) 评论(0) 推荐(0) 编辑