codeforces replace 794g all

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

How to use command line find all users on Linux All In One

How to use command line find all users on Linux All In One Linux 系统中一切皆文件, 就像 js 中一切皆对象一样 /etc/passwd ......
command Linux users line find

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

Linux input and ouput command < symbol & > symbol All In One

Linux input and ouput command < symbol & > symbol All In One left input / right output < 向左侧输入 > 向右侧输出 pbcopy pbpaste 剪切板 ......
symbol command Linux input ouput

在终端命令行中把输出复制到剪贴板的命令 All In One

在终端命令行中把输出复制到剪贴板的命令 All In One use command copy from the Terminal Linux 系统 Debian / Ubuntu / Raspberry Pi OS # Raspberry Pi $ grep shutdown | ??? http ......
命令 剪贴板 终端 All One

Navicat常见错误怎么处理(Rsa Public Key not Find、Generate First a serial、No All Pattern Found!File Alre)

一:下载 一键获取软件 提取码: rtce 1.Navicat 数据库管理工具 :Navicat DBeaver 数据库管理工具:可以代替Navicat 2.Navicat Keygen Patch:激活工具 二:安装激活 1.安装 Navicat:直接下一步即可安装 Navicat Keygen ......
Generate 常见 错误 Navicat Pattern

创客开发工具 LED 显示屏 All In One

创客开发工具 LED 显示屏 All In One OLED 显示屏 SSD1306 S2812B RGB LED 显示屏 ......
开发工具 显示屏 工具 LED All

Disqus Site Reactions All In One

Disqus Site Reactions All In One ......
Reactions Disqus Site All One

Linux copy from pipe command All In One

Linux copy from pipe command All In One shutdown # Linux 关机 $ shutdown --help $ man shutdown Raspberry Pi # Raspberry Pi ??? $ man shutdown | ??? macO ......
command Linux copy from pipe

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

how to use crontab to send an email on Linux All In One

how to use crontab to send an email on Linux All In One ......
crontab Linux email to send

Vim 模式 All In One

Vim 模式 All In One Vim 模式 normal mode 正常模式 visual mode 可视化模式 command mode 命令模式 insert mode 插入模式 i/ ~~eidt mode 编辑模式~~ select mode 选择模式 ex mode 扩展模式 Vim ......
模式 Vim All One In

GitHub Accelerator All In One

GitHub Accelerator All In One GitHub 加速器 tRPC ......
Accelerator GitHub All One In

how to use Vim delete one line All In One

how to use Vim delete one line All In One 在正常模式下(非编辑模式 i),光标选中所在行, 连续按两下d键,即可删除一整行 ✅ ......
delete line how Vim All

Python timezone package All In One

Python timezone package All In One Python arrow package 日期格式化 Asia/Shanghai ......
timezone package Python All One

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$ ,非空负子数组的数量 ......

SD 卡 & SD 内存卡 All In One

SD 卡 & SD 内存卡 All In One SD Cards SDHC Cards SDXC Cards ......
内存卡 内存 SD All One

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

kubectl create / replace / apply

使用 kubectl create 命令在 Kubernetes 里创建这个 Deployment 对象: kubectl create -f nginx.yaml 当我们想要修改镜像的时候,除了使用kubectl edit /kubectl set image ,我们还可以使用修改nginx.ya ......
kubectl replace create apply

Codeforces Round 865 (Div. 2)

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

mysql insert|replace语法

insert语法 replace语法 版权声明:本文所有权归作者! 商业用途转载请联系作者授权! 非商业用途转载,请标明本文链接及出处! 赞成、反驳、不解的小伙伴,欢迎一起交流! ......
语法 replace insert mysql

Vue.js router-link的replace属性

视频 8.<router-link>的replace属性 作用:控制路由跳转时操作浏览器历史记录的模式 浏览器的历史记录有两种写入方式:分别为push和replace,push是追加历史记录,replace是替换当前记录。路由跳转时候默认为push 如何开启replace模式:<router-lin ......
router-link 属性 replace router link

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

Python script get date and time All In One

Python script get date and time All In One Python shell script print current datetime to log file ......
Python script date time All