上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页
摘要: Your task in this problem is to determine the number of divisors of Cnk. Just for fun -- or do you need any special reason for such a useful computati 阅读全文
posted @ 2020-01-21 13:59 GRedComeT 阅读(98) 评论(0) 推荐(0) 编辑
摘要: Elina is reading a book written by Rujia Liu, which introduces a strange way to express non-negative integers. The way is described as following: Choo 阅读全文
posted @ 2020-01-20 22:22 GRedComeT 阅读(92) 评论(0) 推荐(0) 编辑
摘要: The Euler function phi is an important kind of function in number theory, (n) represents the amount of the numbers which are smaller than n and coprim 阅读全文
posted @ 2020-01-20 20:44 GRedComeT 阅读(107) 评论(0) 推荐(0) 编辑
摘要: Chiaki has an n × m matrix A. Rows are numbered from 1 to n from top to bottom and columns are numbered from 1 to m from left to right. The element in 阅读全文
posted @ 2020-01-20 20:31 GRedComeT 阅读(166) 评论(0) 推荐(0) 编辑
摘要: Given A,B,C, You should quickly calculate the result of A^B mod C. (1<=A,C<=1000000000,1<=B<=10^1000000). Input There are multiply testcases. Each tes 阅读全文
posted @ 2020-01-20 17:14 GRedComeT 阅读(131) 评论(0) 推荐(0) 编辑
摘要: A lattice point (x, y) in the first quadrant (x and y are integers greater than or equal to 0), other than the origin, is visible from the origin if t 阅读全文
posted @ 2020-01-19 21:23 GRedComeT 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 两只青蛙在网上相识了,它们聊得很开心,于是觉得很有必要见一面。它们很高兴地发现它们住在同一条纬度线上,于是它们约定各自朝西跳,直到碰面为止。可是它们出发之前忘记了一件很重要的事情,既没有问清楚对方的特征,也没有约定见面的具体位置。不过青蛙们都是很乐观的,它们觉得只要一直朝着某个方向跳下去,总能碰到对 阅读全文
posted @ 2020-01-19 17:36 GRedComeT 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 对于序列A,它的逆序对数定义为满足i<j,且Ai>Aj的数对(i,j)的个数。给1到n的一个排列,按照某种顺序依次删 除m个元素,你的任务是在每次删除一个元素之前统计整个序列的逆序对数 Input 输入第一行包含两个整数n和m,即初始元素的个数和删除的元素个数。 以下n行每行包含一个1到n之间的正整 阅读全文
posted @ 2020-01-18 21:14 GRedComeT 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 维护一个W*W的矩阵,初始值均为S.每次操作可以增加某格子的权值,或询问某子矩阵的总权值.修改操作数M<=160000,询问数Q<=10000,W<=2000000. Input 第一行两个整数,S,W;其中S为矩阵初始值;W为矩阵大小接下来每行为一下三种输入之一(不包含引号):"1 x y a"" 阅读全文
posted @ 2020-01-18 13:41 GRedComeT 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 有n朵花,每朵花有三个属性:花形(s)、颜色(c)、气味(m),用三个整数表示。 现在要对每朵花评级,一朵花的级别是它拥有的美丽能超过的花的数量。 定义一朵花A比另一朵花B要美丽,当且仅Sa>=Sb,Ca>=Cb,Ma>=Mb。 显然,两朵花可能有同样的属性。需要统计出评出每个等级的花的数量。 In 阅读全文
posted @ 2020-01-18 12:55 GRedComeT 阅读(158) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 22 下一页