codeforces replace 794g all

关于map和Promise.all搭配使用

场景一: // 注意:此时map会发送请求 Promise.all只为拿到并发的结果 const requestBus = rawData.map(v => getfeedbackfielddata({ table_name: v.rule.rule.from.table_name_en })) P ......
Promise map all

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

macOS Terminal & Raspberry Pi client_loop: send disconnect: Broken pipe All In One

macOS Terminal & Raspberry Pi client_loop: send disconnect: Broken pipe All In One ......

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

HTML form input shadow-root All In One

HTML form input shadow-root All In One 禁用 DOM 编辑 MutationObserver API ......
shadow-root shadow input HTML form

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

numpy.random.choice(a, size=None, replace=True, p=None)

import numpy as np import random list_a = ["a", "b", "c", "d", "e", "f", "g"] get_ = np.random.choice(list_a, 4, replace=False) print(get_) 输出: ['a' ' ......
None replace choice random numpy

Raspberry Pi crontab not work bug All In One

Raspberry Pi crontab not work bug All In One Raspberry Pi crontab 不执行 bug ......
Raspberry crontab work All One

Raspberry Pi GPIO 图解教程 All In One

Raspberry Pi GPIO 图解教程 All In One Raspberry Pi & GPIO ......
Raspberry 教程 GPIO All One

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

洛谷与 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

Codeforces Round 864 (Div. 2) E. Li Hua and Array

Codeforces Round 864 (Div. 2E. Li Hua and Array)(暴力修改线段树+lca和数论的结合) Example input 5 4 8 1 6 3 7 2 1 5 2 3 4 1 1 3 2 3 4 output 10 2 1 Solution 首先你得知道什 ......
Codeforces Array Round 864 Div

how to get Raspberry Pi System Information All In One

how to get Raspberry Pi System Information All In One ......
Information Raspberry System how get

Codeforces Round 865 (Div. 2)

Codeforces Round 865 (Div. 2) A. Ian Visits Mary void solve(){ int x=read(),y=read(); if(__gcd(y,x)!=1){ cout<<2<<endl; cout<<1<<" "<<y-1<<endl; cout< ......
Codeforces Round 865 Div

2023 最新的如何树莓派上安装中文输入法和设置中文语言环境教程 All In One

2023 最新的如何树莓派上安装中文输入法和设置中文语言环境教程 All In One 亲测有效:Raspberry Pi 3B + Raspberry Pi OS (64-bit) 安装中文输入法 设置默认语言环境 如果使用的是 macOS 上的 Terminal 出错了,需要手动关闭本地环境变量... ......
树莓 输入法 语言 环境 教程

Codeforces Round 863 (Div. 3)

题解报告 基本的一些理解和问题都在注释中 A:Insert Digit 找到第一个小于输入数字的数的位置塞进去就好了,可以细推,但是粗略想想也能知道 #include <bits/stdc++.h> using namespace std; int main(void) { ios::sync_wi ......
Codeforces Round 863 Div

How to publish a Linux package to mirror All In One

How to publish a Linux package to mirror All In One ......
publish package mirror Linux to

Linux change archive mirror All In One

Linux change archive mirror All In One Linux / Debian / Ubuntu / Raspberry Pi OS 切换 Linux 镜像源 / 切换 Raspberry Pi 镜像源 ......
archive change mirror Linux All

Codeforces Round 864 (Div. 2) C和D

比赛地址 C. Li Hua and Chess 题意:给出一个棋盘长宽n,m,有一颗棋子在棋盘上,向八个方向走一步的路程代价都为1,现在进行最多3次询问,问能否确认棋子的位置 Solution 第一次做交互题,想很好想,先询问(1,1),得到x,再询问(1+x,1+x),得到y,最后询问(1+x, ......
Codeforces Round 864 Div

Codeforces Round 860 (Div. 2)

Codeforces Round 860 (Div. 2) Date: 04/08/2023 Link: Codeforces Round 860 (Div. 2) A|Showstopper Brief: 两组数 ${a_i}$ 和 ${b_i}$,长度都为 $n$. $\forall i$ , ......
Codeforces Round 860 Div

Codeforces Round 864 (Div. 2)

评价:A~E 感觉出的挺一般,~~特别是 D 怎么放这种暴力题,场上我还没调出来~~,F 没看。但是 Orz rui_er。 A 在一个点周围放障碍即可。 B 求出最少需要的操作次数 $p$,若 $p > k$ 就无解,否则若 $n$ 为偶数只能任选一个格子翻偶数次,即有解当且仅当 $2 \mid ......
Codeforces Round 864 Div

Raspberry Pi 3B won't turn on after being powered on All In One

Raspberry Pi 3B won't turn on after being powered on All In One 树莓派 3B 通电后无法开机 指示灯只有红色的 LED 亮,绿色的 LED 不亮了 ❓ 红色亮说明通电了,但是绿色不亮,即 ACT 指示灯工作异常 ✅ ......
Raspberry powered after being turn

Codeforces 847 Div3 题解A-G

Codeforces 847 Div3 题解A-G 好久不打了,这几周忙着写各种作业,然后发现代码力跟不上了。今天复健一下吧。反正也是比较碎片的时间,马上新的作业就会被布置下来,n久没打了就来看下。所以这次先捡div3复键一下,之后暑假等实习了到时候得认真上上div2,不然秋招g咯。 A. Poly ......
题解 Codeforces Div3 847 A-G

Codeforces Round 864 (Div. 2)

Codeforces Round 864 (Div. 2) 赛前就留了3个cpp,结果就做出来3个。 不得不说lihua确实呃呃。 A 题面的描述方法以及给出的样例好有迷惑性啊, 其实答案根本不会超过4,把某一个格子周边全部围起来就行了。也就是下面最后2个花括号里面的内容。 int main() { ......
Codeforces Round 864 Div

Codeforces Round 864 (Div. 2) 中文题解

Codeforces Round 864 (Div. 2) 中文题解 A. 李华与迷宫 在 $(x_1,y_1)$ 或 $(x_2,y_2)$ 周围放障碍,更优的那个就是答案。换句话说,定义: $$ f(x,y)= \begin{cases} 2,&(x,y)\text{在角上}\ 3,&(x,y) ......
题解 Codeforces Round 864 Div

Linux shell command screen All In One

Linux shell command screen All In One usbserial USB usbmodem ......
command screen Linux shell All

Codeforces Round 864 (Div. 2) 中文题面

Codeforces Round 864 (Div. 2) 中文题面 A. 李华与迷宫 有一个大小为 $n\times m$ 的矩形迷宫。称两个格子相邻,当且仅当它们有一条公共边。定义一条路径为若干相邻空格子的序列。 每个格子初始为空。李华可以在若干个格子中放置障碍物。他希望知道最少需要放置多少个障 ......
Codeforces Round 864 Div