DIV

Codeforces Round 887 (Div. 2) D.Imbalanced Arrays

Problem - D - Codeforces 题目规定了一种“平衡数组”,数组中的任意一个数绝对值小于等于n且不等于零,任意两个数的和不为0,给n个数a[i],分别表示位于i的数可以与a[i]个数(包括它自己)相加为正。 现在给出n和a数组,要求构造平衡数组,不能构造的话输出-1 我们不难得出以 ......
Codeforces Imbalanced Arrays Round 887

Educational Codeforces Round 35 (Rated for Div. 2)

# Educational Codeforces Round 35 (Rated for Div. 2) https://codeforces.com/contest/911 ## A. Nearest Minimums ```CC #include using namespace std; con ......
Educational Codeforces Round Rated Div

Educational Codeforces Round 71 (Rated for Div. 2)

Educational Codeforces Round 71 (Rated for Div. 2) A - There Are Two Types Of Burgers 思路:价格高的优先取 #include<bits/stdc++.h> using namespace std; #define ......
Educational Codeforces Round Rated Div

Codeforces Round 887 (Div. 2) A-D

# Codeforces Round 887 (Div. 2) ## A. Desorting 题意:给出一个数组,可以进行任意次以下操作: 选择一个i 对于数组中的a[1],a[2],...,a[i]全部+1 a[i+1]...a[n]全部-1, 问最小使得数组变得无序的操作是多少次 ### So ......
Codeforces Round 887 A-D Div

题解 Codeforces Round 887 (Div 1+Div 2) / CF1853AB,CF1852ABCD

下大分!悲!Div 1 只过了 1A!!! 但还是补完整场 Div 2 吧。 # A. Desorting ## problem 用操作:$[1,i]++,[i+1,n]--$,使得数组不单调不降,求最小操作次数。$n\leq 10^5$。 ## solution 操作等同于在差分数组上选出 $i$ ......
题解 Codeforces Div Round 1853

UESTC 2023 Summer Training #13 Div.2

# Preface 开始裸泳咯这个A题给我写的头皮发麻,后面发现我就是个智障儿童 比赛的时候E题想了半天感觉天皇老子来了也是$\frac{1}{n^2}$,赛后发现我是小丑 感觉中间做J的时候因为看错题目浪费了很长时间,不过再给一个小时思博题该不会还是不会 # A. Paint the Middle ......
Training Summer UESTC 2023 Div

Codeforces Round #887 Div.2 A-E

# Codeforces Round #887 Div.2 一定要手玩哦 前言: **一定要手玩,一定要手玩!** 我今早一手玩发现C很TM简单,如果赛时我能切C说不定直接上1800.。。。 时隔多年,我的**Codeforces Rating(1718) 再次超越了 @cqbzlhy**(1674 ......
Codeforces Round 887 A-E Div

Codeforces Round 887 (Div. 2)记录

A. Desorting 如果有 $a_1 \leq a_2 \leq \ldots \leq a_{n-1} \leq a_n$,则称长度为 $n$ 的数组 $a$ 已排序。 Ntarsis 有一个长度为 $n$的数组 $a$。 他可以对数组进行一种操作(0 次或多次): - 选择一个索引 $i$ ......
Codeforces Round 887 Div

Codeforces Round 887(Div 2)(A-C)

# A. Desorting 题目里说的无序是指后面的一个数大于前面一个数,所以只要有一个 a[i+1]-a[i] using namespace std; #define int long long signed main() { ios::sync_with_stdio(false); cin. ......
Codeforces Round 887 A-C Div

Codeforces Round 886 (Div. 4)

# [Dashboard - Codeforces Round 886 (Div. 4) - Codeforces](https://codeforces.com/contest/1850) ## [A. To My Critics](https://codeforces.com/contest/1 ......
Codeforces Round 886 Div

Codeforces Round 887 (Div. 1) 题解

https://codeforces.com/contest/1852/problems # A. Ntarsis' Set https://codeforces.com/contest/1852/problem/A 感觉不是很一眼。 $n$ 和 $k$ 都是 $2 \times 10^5$,~~不 ......
题解 Codeforces Round 887 Div

直播平台搭建,监听div滚动高度

直播平台搭建,监听div滚动高度 监听窗口的滚动 <!DOCTYPE html><html><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport ......
高度 平台 div

contenteditable设为true时,execCommand 切换 h2标签和div标签问题

如代码,设置contenteditable="true",使用 document.execCommand("formatBlock", false, nodeName) 来回切换h2标签和div标签时,会在h2标签中生成div标签和h2标签,不将原有的h2标签替换 <div class="mainT ......

「题解」Codeforces Round 887 (Div. 2)

## A. Desorting ### Problem [题目](https://codeforces.com/problemset/problem/1853/A) ### Sol & Code 若序列一开始无序答案为 $0$ 若有序即 $a_1\leq a_2 \leq \dots \leq a_ ......
题解 Codeforces Round 887 Div

Codeforces Round 887 (Div. 2)

## C. Ntarsis' Set >​ ![image-20230724121346402](https://zeoy-typora.oss-cn-hangzhou.aliyuncs.com/image-20230724121346402.png) > >($1 \leq n,k \leq 2 ......
Codeforces Round 887 Div

Codeforces Round 887 (Div 2) C. Ntarsis' Set

Ntarsis' Set 题意是给你n个数,每次按照顺序删除位于a[i]位置的这n个数,问k次后最小的是多少 参考这位大佬的题解Codeforces Round 887 (Div 2)A~C - 知乎 (zhihu.com) 结合一个官方题解,进行一次操作后,由于前面删掉i个数,a[i]到a[i+1 ......
Codeforces Ntarsis Round 887 Div

Codeforces Round 886 (Div. 4) 题解 A - H

## [A](https://codeforces.com/contest/1850/problem/A). To My Critics ### 题目大意 给定三个数,你可以挑俩数加起来,问这仨数有没有可能加起来大于等于 $10$ . ### 解题思路 我们找其中最大的两个数相加与 $10$ 比较即 ......
题解 Codeforces Round 886 Div

Codeforces Round 886 (Div. 4) 全题题解

我关注的人中正式参与**比赛排名公示**: | # | Who | = | Penalty | * | [A](https://codeforces.com/contest/1850/problem/A) | [B](https://codeforces.com/contest/1850/probl ......
题解 Codeforces Round 886 Div

Codeforces Round 886 (Div. 4)记录

A - To My Critics 代码: #include<cstdio> #include<algorithm> #include<cmath> #include<vector> #include<string.h> #include<set> #include<string> #include ......
Codeforces Round 886 Div

Codeforces Round 885 (Div. 2) A - C

# A. Vika and Her Friends [Problem - A - Codeforces](https://codeforces.com/contest/1848/problem/A) **题意:** ​ 在$n*m$的范围内,$a$和她的朋友在追逐游戏,每秒$a$和朋友必须从当前位置 ......
Codeforces Round 885 Div

Codeforces Round 886 (Div. 4)(A-H)

# A-To My Critics 读入 a,b,c 如果三个里较大的两个的和大于等于 10 输出 YES,不然输出 NO ``` #include using namespace std; void solve() { int a, b, c; cin >> a >> b >> c; cout = ......
Codeforces Round 886 A-H Div

Codeforces Round 886 (Div. 4)补题

# [Codeforces Round 886 (Div. 4)](https://codeforces.com/contest/1850) ## A~D: ```c++ //A: bool solve(){ cin>>a[1]>>a[2]>>a[3]; sort(a+1,a+4); return ......
Codeforces Round 886 Div

Codeforces Round 886 (Div. 4)

## F. We Were Both Children >![image-20230722103513062](https://zeoy-typora.oss-cn-hangzhou.aliyuncs.com/image-20230722103513062.png) ### 题解:约数 >* 我们先 ......
Codeforces Round 886 Div

Codeforces Round 886 (Div. 4)

Codeforces Round 886 (Div. 4) A - To My Critics 思路:最大的两个数的和大于等于10则YES #include<bits/stdc++.h> using namespace std; #define int long long typedef pair< ......
Codeforces Round 886 Div

「解题报告」Codeforces Round 886 (Div. 4)

比赛地址:[Dashboard - Codeforces Round 886 (Div. 4) - Codeforces](https://codeforces.com/contest/1850) 由于时间太晚了,因此并没有参加比赛,题目都是后来补做的。 ## A. To My Critics [P ......
Codeforces 报告 Round 886 Div

Codeforces Round 886 (Div. 4)

# A. To My Critics ```cpp #include using namespace std; #define int long long void solve(){ vector a(3); for( auto & i : a ) cin >> i; sort( a.begin() ......
Codeforces Round 886 Div

Codeforces Round 501 (Div. 3)

Codeforces Round 501 (Div. 3) A - Points in Segments 思路:记录每个区间 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int1 ......
Codeforces Round 501 Div

Vue3 响应式全局对象json 动态绑定界面四 (Div块样式 Json数据绑定)

效果 man.js 定义 响应式全局对象 globalData //全局对象 const globalData=reactive({ extTelTalkData: [ { userExten: "1000", userName: "刘亦菲", callStatus:"通话" }, { userEx ......
全局 样式 界面 对象 动态

Vue3 响应式全局对象json 动态绑定界面三 (Div块样式 字符串叠加)

效果 man.js 定义 响应式全局对象 globalData //全局对象 const globalData=reactive({ missedCallData:"", currentUserTel:"", }) app.provide('globalData', globalData); 在ma ......
字符串 全局 样式 字符 界面

Codeforces Round div.2 C

Smiling & Weeping 我对姑娘的喜欢,何止钟意二字 题目链接:Problem - C - Codeforces 自我分析:我感觉这是一道很有意义的题目,可以帮我们更好的理解二进制的本质 思路:首先先了解一下题目,我们是求由第i个数到末尾的异或和(异或:相同为0,不同为1),那么我们可以 ......
Codeforces Round div