打赏

相关文章

Codeforces Round #760 (Div. 3) A~G题解

A. Polycarp and Sums of Subsequences 题目 ​ 给我们一个长度为 3 3 3 的正整数数组 a a a 。 b b b 是一个长度为 7 7 7 的数组, b b b 中的每个元素代表着数组 a a a 某个子序列的元素和。 ​ 例如 a a a 数组等于 { 1 , 4 , 3 } \{1,4,3\} {1,4,3} , 那么 b {…

Codeforces Round #760 (Div. 3) D. Array and Operations

题目链接:Problem - D - Codeforces You are given an array aa of n integers, and another integer k such that 2k≤n. You have to perform exactly k operations with this array. In one operation, you have to choose two elements of the array (let the…

【比赛笔记】Codeforces Round #760 (Div. 3)总结

在CF上用虚拟参加的方式打了一场比赛,过程是这样的: 1.A题有一点绕,想了几分钟才想出思路,之后写出的代码样例没过,于是换了个角度想问题,代码不仅更简洁了,而且瞬间AC,总用时15分钟…

Codeforces Round #760 (Div. 3) A-E题解

Codeforces Round #760 (Div. 3) 本场div3还是延续老传统,全部思维题(但是G题还没开,未知,明天待补题),A-F全思维题,并没用到算法和数据结构。 A. Polycarp and Sums of Subsequences 水题&a…

Codeforces Round #760 (Div. 3) 题解 完整A~G

A. Polycarp and Sums of Subsequences 题意 有数组 a a a,由3个正整数组成。对于 a a a的每个非空子序列,求子序列中的元素和,并按非递减的顺序存入数组 b b b,显然 b b b由7个正整数组成。现给定数组 b b b,求数组…

Codeforces Round #760 (Div. 3)

A. Polycarp and Sums of Subsequences 题目&#xff1a; 思路分析&#xff1a; 就是找出一个7个数序列是由三个数的原始序列 俩俩相加 三数相加组成的 可以容易的分析出来 这三个数就是由最小的二个数和最大的一个数-这个数组成 代码实现&#xff1a; #include<iostream…

手机版浏览

扫一扫体验

微信公众账号

微信扫一扫加关注

返回
顶部