kZjPBD.jpg
上一页 1 2 3 4 5 6 7 8 9 ··· 23 下一页
摘要: Harmonious Army Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 1184 Accepted Submission(s): 41 阅读全文
posted @ 2019-08-05 20:33 Through_The_Night 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 高一一班的座位表是个n*m的矩阵,经过一个学期的相处,每个同学和前后左右相邻的同学互相成为了好朋友。这学期要分文理科了,每个同学对于选择文科与理科有着自己的喜悦值,而一对好朋友如果能同时选文科或者理科,那么他们又将收获一些喜悦值。 作为计算机竞赛教练的scp大老板,想知道如何分配可以使得全班的喜悦值 阅读全文
posted @ 2019-08-05 10:12 Through_The_Night 阅读(186) 评论(0) 推荐(0) 编辑
摘要: You are given an array of nn integers a1,a2,...,ana1,a2,...,an. We define that a sequence p1,p2,...,pk(k∈[1,n])p1,p2,...,pk(k∈[1,n]) is beautiful if a 阅读全文
posted @ 2019-08-04 11:16 Through_The_Night 阅读(308) 评论(0) 推荐(0) 编辑
摘要: Problem Description There are n apples on a tree, numbered from 1 to n.Count the number of ways to pick at most m apples. Input The first line of the 阅读全文
posted @ 2019-08-03 10:21 Through_The_Night 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 题目:给出一个数n,在【1,n】等概率的选择一个数i,在【1,i】内每次等概率的选择一个数字组成长度为i的序列,这个序列中所有数都在【1,i】内,且两两互不相同(也就是说这个长度为i的序列是1->n的一种排列),以这个长度为i的序列为参数array运行程序: 1.统计array中的逆序对数目 2.统 阅读全文
posted @ 2019-08-01 21:44 Through_The_Night 阅读(119) 评论(0) 推荐(0) 编辑
摘要: SOLUTION: https://www.90yang.com/2019hdu-multi1-k-function/ phi 卷 id 不会线性筛 https://www.cnblogs.com/DeaphetS/p/11228116.html phi 卷 id 不会线性筛 这有一个nlogn的筛 阅读全文
posted @ 2019-08-01 15:38 Through_The_Night 阅读(329) 评论(0) 推荐(0) 编辑
摘要: 题目链接: https://cn.vjudge.net/contest/313499#problem/L SOLUTION: 对于题意,要求最短的表达式,当用最小循环元来表示一个字符串时,其表达式才最短。对于字符串S自匹配求出next数组,分析可以发现:当i-next[i]能整除i时,S[1~i-n 阅读全文
posted @ 2019-07-31 20:52 Through_The_Night 阅读(140) 评论(0) 推荐(0) 编辑
摘要: 题目描述 给出一个长度为 的数列 和一个长度为 的数列 ,求 有多少个长度为 的连续子数列能与 匹配。 两个数列可以匹配,当且仅当存在一种方案,使两个数列中的数可以两两配对,两个数可以配对当且仅当它们的和不小于 。 题目描述 给出一个长度为 的数列 和一个长度为 的数列 ,求 有多少个长度为 的连续 阅读全文
posted @ 2019-07-30 16:17 Through_The_Night 阅读(273) 评论(0) 推荐(0) 编辑
摘要: Song Zha Zha has an 11-indexed array A . Li Zha Zha has QQ queries . Each query has two integers LL, RR , asking Ran Zha Zha to do the following thing 阅读全文
posted @ 2019-07-30 14:56 Through_The_Night 阅读(644) 评论(0) 推荐(0) 编辑
摘要: Consider an array AA with n elements . Each of its element is A[i]A[i] (1 \le i \le n)(1≤i≤n) . Then gives two integers QQ, KK, and QQ queries follow 阅读全文
posted @ 2019-07-28 11:09 Through_The_Night 阅读(345) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 23 下一页