随笔分类 -  其它---枚举

摘要:Time limit : 2sec / Memory limit : 256MB Score : 300 points Problem Statement You are given a string S consisting of digits between 1 and 9, inclusive 阅读全文
posted @ 2017-08-05 11:23 wydxry 阅读(586) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://abc043.contest.atcoder.jp/tasks/arc059_a Time limit : 2sec / Memory limit : 256MB Score : 200 points Problem Statement Evi has N integers  阅读全文
posted @ 2017-08-04 23:55 wydxry 阅读(356) 评论(0) 推荐(0) 编辑
摘要:题目链接:http://abc042.contest.atcoder.jp/tasks/arc058_a Time limit : 2sec / Memory limit : 256MB Score : 300 points Problem Statement Iroha is very parti 阅读全文
posted @ 2017-08-04 20:47 wydxry 阅读(726) 评论(0) 推荐(0) 编辑
摘要:数轴上有N个点,任意两点连线得到n(n-1)条线段,试求线段的总长。 输入格式: 第一行,一个整数N,表示点数。 接下来N行,每行一个整数X_i,表示点的坐标。 输出格式: 输出为一个整数,表示线段的总长。 N < = 10000 , 0 < = X_i < = 1000000000 数轴上有N个点 阅读全文
posted @ 2017-08-03 20:46 wydxry 阅读(689) 评论(0) 推荐(0) 编辑
摘要:In the city of Ultima Thule job applicants are often offered an IQ test. The test is as follows: the person gets a piece of squared paper with a 4 × 4 阅读全文
posted @ 2017-07-31 16:21 wydxry 阅读(409) 评论(0) 推荐(0) 编辑
摘要:Very soon there will be a parade of victory over alien invaders in Berland. Unfortunately, all soldiers died in the war and now the army consists of e 阅读全文
posted @ 2017-07-31 15:27 wydxry 阅读(321) 评论(0) 推荐(0) 编辑
摘要:水仙花数是指一个 n 位数 ( n >= 3 ),它的每个位上的数字的 n 次幂之和等于它本身。(例如:1^3 + 5^3 + 3^3 = 153) 给出一个整数M,求 >= M的最小的水仙花数。 水仙花数是指一个 n 位数 ( n >= 3 ),它的每个位上的数字的 n 次幂之和等于它本身。(例如 阅读全文
posted @ 2017-07-26 13:37 wydxry 阅读(246) 评论(0) 推荐(0) 编辑
摘要:X*X mod P = A,其中P为质数。给出P和A,求<=P的所有X。 X*X mod P = A,其中P为质数。给出P和A,求<=P的所有X。 X*X mod P = A,其中P为质数。给出P和A,求<=P的所有X。 Input 两个数P A,中间用空格隔开。(1 <= A < P <= 100 阅读全文
posted @ 2017-07-26 00:53 wydxry 阅读(317) 评论(0) 推荐(0) 编辑

Live2D