codeforces round sort with

Codeforces Round 628 (Div. 2) A-D

Codeforces Round 628 (Div. 2) A. EhAb AnD gCd void solve(){ int n=read(); for(int i=1;i*i<=n;i++){ int g=__gcd(i,n-i); if(g*g+i*(n-i)==n*g){ cout<<i<< ......
Codeforces Round 628 A-D Div

Codeforces Round 862 (Div. 2)

Preface 补题ing 这场思路挺顺的,早上上课的时候口胡了前5题下午都一发写过了 然后想了30min的F1也Rush出来了,不过F2还是有点仙的做不动 A. We Need the Zero SB题,首先判断是否所有数的异或和等于$0$ 若不为$0$且$n$为偶数则无解,否则答案就是这个异或和 ......
Codeforces Round 862 Div

[Educational Codeforces Round 118 (Rated for Div. 2)]题解

A 题意: 给定两个数,每一个数有两个属性,第一个属性是p1,第二个属性是p2.表示这个数有p2个后缀0.这个数本身等于p1后面加p2个0.问给你两个这种数,判断大小。 思路: 赛场上想到的:如果最终的长度不一样,可以直接根据长度判断。 如果相等,就把后缀0加上直接比较大小就可以(比较字典序的大小) ......
题解 Educational Codeforces Round Rated

Educational Codeforces Round 110 (Rated for Div. 2) C. Unstable String(状态机)

https://codeforces.com/contest/1535/problem/C 题目大意: 给定一个字符串s,由 1 0 ?组成:?每次都可以任意替换成0或者1 问我们这个子字符串中,能够组成010101这样两两互不相等的字符串的数量最大是多少? input 3 0?10 ??? ?10 ......

Educational Codeforces Round 120 (Rated for Div. 2)

题目链接 C 核心思路 这是一个很好的二分的题目,首先我们判断题目可不可二分,很显然是可以的把。因为假设我们x是可以的话,x+1...肯定也是可以的,但是x-1,x-2....这些又是不可以的。 好,接下来思考二分刚开始的左右边界,左边届很好想,关键是右边界。这个其实也不难。因为我们最坏肯定是全部都 ......
Educational Codeforces Round Rated 120

how to create one command line configuration tool with shell language on Linux All In One

how to create one command line configuration tool with shell language on Linux All In One 如何在 Linux 上用 shell 语言创建一个命令行配置工具 raspi-config ......
configuration language command create Linux

CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!)

CodeTON Round 2 (Div. 1 + Div. 2, Rated, Prizes!) A. Two 0-1 Sequences void solve(){ int n=read(),m=read(),ans=1; string s,t; cin>>s>>t; // cout<<s<<t ......
Div CodeTON Prizes Round Rated

Codefroces Round #863(div.3)---E

题目:Problem - E - Codeforces 题意:有一个序列a,a中的每个元素的每一位都不为4,问序列中第k个数字是多少。 分析:可以用数位dp查询出1-r中有多少个满足条件的数字,通过二分r找到结果。 代码: #include <bits/stdc++.h> using namespa ......
Codefroces Round 863 div

Educational Codeforces Round 146 (Rated for Div. 2)

Preface 补题ing 值得一提的时补这场的时候先是遇上了CF的12小时大维护,后面又遇到了评测机崩了测不了也是有点有意思的说 A. Coins 傻逼题,首先考虑$2|n$时一定有解$x=\frac{n}{2},y=0$,否则若$2\nmid n\and 2|k$则由裴蜀定理知此时一定无解 否则 ......
Educational Codeforces Round Rated 146

Graphs with Python: Overview and Best Libraries

Graphs with Python: Overview and Best Libraries Graph analysis, interactive visualizations, and graph machine learning A graph is a relatively old mat ......
Libraries Overview Graphs Python Best

Guide to Regen on VW Passat TDI with Launch x-431 Pro5

Launch X-431 PRO5 opens the era of innovative dual diagnostic modes (local diagnosis and SmartLink remote diagnosis). It inherits the powerful diagnos ......
Passat Launch Guide Regen Pro5

Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools"的解决办法

https://zhuanlan.zhihu.com/p/471661231 下载软件 链接:https://pan.baidu.com/s/12hhCEKnjr2Qq-H3sHuQiXQ?pwd=6g0v 提取码:6g0v 安装 退出虚拟环境,重新进入pip安装对应包 ......
Microsoft quot required greater 办法

Codeforces Educational Codeforces Round 145 (Rated for Div. 2) C. Sum on Subarrays 题解

题意 Codeforces Educational Codeforces Round 145 (Rated for Div. 2) C. Sum on Subarrays 给你 $n$ 和 $k$ ,要求生成一个长度为 $n$ 的数组 $a$,且他的非空正子数组的数量为 $k$ ,非空负子数组的数量 ......

Lecture#10 Sorting & Aggregation Algorithms

接下来将学习使用我们现在学习的 DBMS 组件来执行查询。 我们今天要讨论的算法都是基于 Disk 的,即查询的中间结果也需要存储到磁盘中。我们需要使用 Buffer Pool 去实现这些算法,要最大化磁盘连续 I/O。 Query Plan:算子组织成树形结构,数据从叶子节点流向根节点,根节点的输 ......
Aggregation Algorithms Lecture Sorting amp

Educational Codeforces Round 131 (Rated for Div. 2)

题目连接 C 核心思路 这个题目乍一看是一个模拟题其实这是一个可以使用二分的题目,因为这其实只需要我们找到答案就好了。 那么二分怎么去check呢,我们可以计算出来每一位工人在x小时可以完成的任务量。 首先我们可以搞出来某一个工人擅长哪几种任务,对于这几种任务它可以一个小时就完成一个,而对于他不擅长 ......
Educational Codeforces Round Rated 131

Codeforces Round 864 (Div. 2)

地址:cf round 864 赛后碎碎念,打的时候问题很多,就不一一列举了 A.Li Hua and Maze 怎么围得最少?你把一个点上下左右四个方向均放一个即可,但注意,边界处不需要放,之后对于两个点取小即可 B.Li Hua and Pattern 怎么想? 首先,遍历给定区域,判断给定取余 ......
Codeforces Round 864 Div

Codeforces Round 865 (Div. 2)

Preface 这周一周二没事情干就只好在水课上口胡点题目了,然后今天一口气把口胡的都写了 这场感觉A~D感觉都不难,我称之为构造题大赛,不过说实话D想了挺久的,比赛时不一定写得出来 A. Ian Visits Mary 很显然当我们一次跳的$\Delta x,\Delta y$满足$\gcd(\D ......
Codeforces Round 865 Div

Codeforces Round 864 (Div. 2)

Preface 周六的最后一战,感觉脑子确实有点混沌了一个C题好多细节没考虑好心态差点爆炸 最后还好20min速切了D稳了手排名,不然已经回到蓝名了 感觉最近打比赛老是犯一些很离谱的失误,题目老是想不清楚导致好几场没法在比赛时写掉Div2的E了 嘛说白了还是练得少了,多刷题解决一切问题的说 A. L ......
Codeforces Round 864 Div

Codeforces Round #628 (Div. 2)

A. EhAb AnD gCd 给定 $x$ 求解任意一个数对 $(a,b)$ 使得 $gcd(a,b)+lcm(a,b) = x$ $1\le a,b\le1e9,2\le x\le1e9$ 签到,$a,b$ 可以为 $1$ 所以直接输出 $1,x - 1$ 即可 void AC() { int ......
Codeforces Round 628 Div

WSL启动报错WslRegisterDistribution failed with error: 0x8007019e

Installing, this may take a few minutes... WslRegisterDistribution failed with error: 0x8007019e The Windows Subsystem for Linux optional component is ......

Codeforces Round 862 (Div. 2)

Codeforces Round 862 (Div. 2) Date: 04/07/2023 Link: Dashboard - Codeforces Round 862 (Div. 2) - Codeforces A|We Need the Zero Brief: 给定非负整数序列,求一个 $x$ ......
Codeforces Round 862 Div

Codeforces Round 863 (Div. 3) E. Living Sequence 题解

题意 Codeforces Round 863 (Div. 3) E. Living Sequence 如果正整数中不能存在 $4$,那么新生成的数中的第 $k$ 个数为多少? 思路 $4$ 不能够选,也就是每一位只能选择 $0,1,2,3,5,6,7,8,9$ 。可以发现,这就是一个九进制。 当需 ......
题解 Codeforces Sequence Living Round

Codeforces Round 864 (Div. 2) 题解

A. Li Hua and Maze 题目保证了两个点的哈密顿距离至少为 $2$,所以他们不会相邻。 只要有点在角上答案就是 $2$,在边上但不在角上就是 $3$,否则就是 $4$。 #include <bits/stdc++.h> #include <ext/pb_ds/assoc_contain ......
题解 Codeforces Round 864 Div

Springboot报错:Could not resolve view with name 'index' in servlet with name 'dispatcherServlet'

该异常是因为用定义了带@EnableWebMvc注解的配置类后发生的,在带该注解的配置类中加入下面的代码就可以了: @Bean public InternalResourceViewResolver viewResolver() { InternalResourceViewResolver view ......
dispatcherServlet 39 name with Springboot

Codeforces Round 864 (Div. 2)

Codeforces Round 864 (Div. 2) 题目链接 Codeforces Round 864 (Div. 2) A题 这个题是一个思维题稍微想一下应该就可以解决. 1.我们可以发现如果点(x,y)位于正方形的四个角上把这个点围起来需要两次操作 2.如果点(x,y)在正方形的4条边上 ......
Codeforces Round 864 Div

Java8 - sum求和,将 List 集合转为 Map,key去重(groupingBy),sorted排序

Java8 - sum求和,将 List 集合转为 Map,key去重(groupingBy),sorted排序 package com.example.core.mydemo.java8; public class GoodsPriceDTO { private Integer id; priva ......
groupingBy sorted Java8 Java List

洛谷与 Codeforces 的难度评级

为了比较 CF 与洛谷的题目难度评级,我写了一个爬虫,爬取了 CF 题目在源站和洛谷中的难度,并进行比较。 这里先给出两者的换算: 洛谷|入门|普及-|普及/提高-|普及+/提高|提高+/省选-|省选/NOI-|NOI/NOI+/CTSC -|-|-|-|-|-|-|- CF|800|900-110 ......
Codeforces 难度

Codeforces Round #861 (Div. 2)

Codeforces Round #861 (Div. 2) Date: 03/29/2023 Link: Dashboard - Codeforces Round 861 (Div. 2) - Codeforces A|Lucky Numbers Brief: 从 $l$ 到 $r$ 的整数中找到 ......
Codeforces Round 861 Div

Codeforces Round 677 (Div. 3) E. Two Round Dances(数论)

https://codeforces.com/contest/1433/problem/E 题目大意: n个人(n是偶数)跳了两轮舞,每轮舞正好有n/2个人。你的任务是找出n个人跳两轮舞的方法,如果每轮舞正好由n/2个人组成。每个人都应该属于这两种圆舞中的一种。 人相同位置不同也算是同一种方案。 i ......
数论 Round Codeforces Dances 677

Codeforces Round 864 (Div. 2)

题解报告 基本的一些理解和问题都在注释中 A:Li Hua and Maze 就是判断把其中一个点围起来所需要的最小的格子,考虑下边界的情况就行了 #include <bits/stdc++.h> using namespace std; int main(void) { ios::sync_wit ......
Codeforces Round 864 Div