发表评论取消回复
相关阅读
相关 【构造】Codeforces Round #843 (Div. 2) B Gardener and the Array
[Problem - B - Codeforces][] 题意: 给定一个序列,让你判断是否存在两个子序列使得这两个子序列或起来相等 思路: 设两个子序列是a和b 两
相关 Codeforces Round #258 (Div. 2) B. Sort the Array
[Problem - B - Codeforces][] 题意: 给定一个数列,问你能否把其一段子段反转之后使其单调递增 思路: 结论很简单,当且仅当数列中只有一段单调
相关 LeetCode(Array)1929. Concatenation of Array
1.问题 Given an integer array nums of length n, you want to create an array ans of leng
相关 Sicily 1159
\include<iostream> \include <string> using namespace std; int main() \{ i
相关 CF949B A Leapfrog in the Array
题意: Dima是一名初级程序员。 在他的工作中,他经常不断地重复以下操作:从数组中删除每个第二个元素。 有一天,他对这个问题的解决方案感到厌倦,他提出了以下华丽的算法。
相关 I - Three Parts of the Array CodeForces - 1006C
You are given an array d1,d2,…,dnd1,d2,…,dn consisting of nn integer numbers. Your task
相关 1095B Array Stabilization
题意:给了n个数字,删除一个数,然后让最大的数减最小的数最小。 题解:排序后, 有两种删除方法,要么删除第一个要么删除最后一个,所以两个中取最小。 B. Array Sta
相关 1159B Expansion coefficient of the array
B. Expansion coefficient of the array time limit per test 1 second memory limit per t
相关 1159A A pile of stones
A. A pile of stones time limit per test 1 second memory limit per test 256 megaby
相关 Codeforces 1159D The minimal unique substring(构造)
首先我们先观察三个串 1010,110110,11101110,答案都是红色部分,我们可以下一个结论,形如 abab ( a 中有非负整数个 1 , b 中只有一个 0 )这类
还没有评论,来说两句吧...