codeforces round 860 div

现代 CSS 解决方案:数学函数 Round

在 CSS 中,存在许多数学函数,这些函数能够通过简单的计算操作来生成某些属性值,例如在[现代 CSS 解决方案:CSS 数学函数](https://github.com/chokcoco/iCSS/issues/177)一文中,我们详细介绍了 + calc():用于计算任意长度、百分比或数值型数据 ......
函数 解决方案 数学 方案 Round

Educational Codeforces Round 7 A - E

# [Educational Codeforces Round 7](https://codeforces.com/contest/622) [TOC] ## [A - Infinite Sequence](https://codeforces.com/contest/622/problem/A) ......
Educational Codeforces Round

【牛客周赛 Round 10】A-D题解

### A https://ac.nowcoder.com/acm/contest/64272/A **题意** 游游定义一个数组为“稳定的”,当且仅当数组相邻的两个元素之差的绝对值不超过1。例如[2,3,2,2,1]是稳定的,而[1,3,2]则不是稳定的。 游游拿到了一个数组,她想求出该数组的最长 ......
题解 Round A-D

Pinely Round 2 (Div. 1 + Div. 2)

Channel 简单分类讨论情况即可 算下最多有多少人在线即可 void solve(){ int n , a , q ; cin >> n >> a >>q ; int add = 0 , minn = 0 , maxx = 0 ; cin >>in +1 ; for(int i = 1 ; i ......
Div Pinely Round

Educational Codeforces Round 6 A - E

# [Educational Codeforces Round 6](https://codeforces.com/contest/620) [TOC] ## [A - Professor GukiZ's Robot](https://codeforces.com/contest/620/probl ......
Educational Codeforces Round

vp CF_edu154(div2)

**第一次vp。** 9.2 15:10 开始。 之前因为补作业没有打这个 154 场,但是就vp表现来看如果打了可能就要加 $-154$ 了 ( )。 遇到思路卡住的就直接看 jiangly 写的题解,最后开出 $4$ 题,rk1400左右,真实水平应该低于 rk5000。 ##### T1 很简 ......
CF_edu div2 154 edu div

Educational Codeforces Round 154 (Rated for Div. 2)

# Preface 太FW了现在,纯纯给队伍拖后腿,马上要成为我们队CF Rating最低的了 但换句话说徐神和祁神都这么猛,我直接躺着被嘎嘎带飞好像也很爽啊 不管怎么样还是要多练,不过接下来可能要按专题重点突破了,明天队里开个会确定下大家的主攻方向再说 # A. Prime Deletion 因为 ......
Educational Codeforces Round Rated 154

Pinely Round 2 (Div. 1 + Div. 2)

# Preface 唉懒狗了这把比赛的时候突然不想打了跑去看AIR了,所以就没打了,后面补题的时候发现前面题挺合我口味的如果打了大概率能上橙 不过这种第二天早上有早八的时间还是很难打的,苦路西苦路西 # A. Channel 统计当存在某个时刻在线人数为$n$时就是```YES``` 否则把所有的` ......
Div Pinely Round

Educational Codeforces Round 23 A - F

# [Educational Codeforces Round 23](https://codeforces.com/contest/817) [TOC] ## [A - Treasure Hunt](https://codeforces.com/contest/817/problem/A) 往四个 ......
Educational Codeforces Round 23

Educational Codeforces Round 154 (Rated for Div. 2)(A—C)

# [A. Prime Deletion](http://codeforces.com/contest/1861/problem/A "A. Prime Deletion") ## 思路: 从1到9,每个数后面都可以加一个数构成一个含有两个数的质数,只需要从s[1]~s[9]中找到一个数与s[0]构 ......
Educational Codeforces Round Rated 154

【题解】Educational Codeforces Round 153(CF1860)

每次打都想感叹一句,Educational 名不虚传。 ## A.Not a Substring ### 题目描述: 有 $t$ 组数据,对于每一组数据,你需要判断能否构造一个只由左右括号组成且长度为已经给定字符串的 $2$ 倍且已经给定的字符串不是子串的合法字符串。注:合法的字符串是左右括号能完全 ......
题解 Educational Codeforces Round 1860

Educational Codeforces Round 113

稳定发挥4题 A题文件输出没去掉WA了一发 B题特殊情况没判到,WA了好几发,中间还交到D题去了 C题简单判断一下无解,然后组合数求一下就行 D题其实也挺简单的,考虑严格夹在两条竖线之间的点(不包括边界),如果它们不是在同一水平线上,则必然大于Manhattan距离,而且两个点对之间要么是x方向走多 ......
Educational Codeforces Round 113

Educational Codeforces Round 154 (Rated for Div. 2)

感觉edu的题目都比较有新意; A.Prime Deletion 题意:给定长度为9的数,且1-9每个数字出现一次,求按照原定顺序选几个数组成的质数(起码选择两个); 下意识写了一个dfs,过了; 1 #include<bits/stdc++.h> 2 using namespace std; 3 ......
Educational Codeforces Round Rated 154

Educational Codeforces Round 123

# A. Doors and Keys ```cpp #include using namespace std; #define int long long void solve() { string s; cin >> s; map pos; for( int i = 0 ; i > t; whi ......
Educational Codeforces Round 123

Educational Codeforces Round 15 A - E

# [Educational Codeforces Round 15](https://codeforces.com/contest/702) [TOC] ## [A - Maximum Increase](https://codeforces.com/contest/702/problem/A) ......
Educational Codeforces Round 15

Educational Codeforces Round 5 A-E

# [Educational Codeforces Round 5](https://codeforces.com/contest/616) ![image-20230901173739735](C:\Users\magicat\AppData\Roaming\Typora\typora-user- ......
Educational Codeforces Round A-E

Educational Codeforces Round 114

今天的D题有点惊险了,属于是,还剩9分钟搞出来。 B题开始猜到了结论,只要在最大值和最小值之间都是可以的,证明的话,可以先考虑从数量大的开始填,然后反证法一下(口胡) C题选择attack肯定是尽量跟,dragon的defence越接近越好 如果有相等就直接选,否则就选前面的或者后面的 本来写的是b ......
Educational Codeforces Round 114

Codeforces Round 894 (Div. 3)

## $A. Gift Carpet$ ```cpp void solve(){ int n=read(),m=read(); char a[n+1][m+1]; for(int i=1;i>a[i][j]; } } string s="vika"; int cnt=0; for(int i=1;i ......
Codeforces Round 894 Div

【题解】Educational Codeforces Round 154 A-E(CF1861)

感觉很不在状态啊,竟然没做出来 E。 ## A.Prime Deletion ### 题目描述: 质数是一个正整数,它正好有两个不同的正除数 $1$和整数本身。例如,$2$、$3$、$13$和$101$是质数;$1$、$4$、$6$和$42$不是质数。 给你一个从$1$到$9$的数字序列,其中**从 ......
题解 Educational Codeforces Round 1861

codeforces div 3 contest 894 solutions

IOI失利day1了,打div 3休息一下吧 https://codeforces.com/contest/1862/ A. Gift Carpet 贪心寻找第一个v, 其他的找最早的i,k,a就好了。 应该不需要多说(?) B.Sequence Game 就是想想看当我们有4 3的时候应该怎么做? ......
codeforces solutions contest 894 div

Pinely Round 2 (Div. 1 + Div. 2)

# Pinely Round 2 (Div. 1 + Div. 2) [比赛链接](https://codeforces.com/contest/1863) 因为第二天早上满课,所以这个比赛没有打,但是补题还是要有的。 ## A题Channel [A题链接](https://codeforces.c ......
Div Pinely Round

Pinely Round 2 (Div. 1 + Div. 2)

# [Pinely Round 2 (Div. 1 + Div. 2) - Codeforces](https://codeforces.com/contest/1863) ## A Channel **题意:总共有$n$个人,最开始有$a$个人在线上,再给你$q$次消息,每次消息$+$表示上线,$ ......
Div Pinely Round

【题解】Pinely Round 2 D,E,F(CF1863)

## D.Two-Colored Dominoes ### 题目描述: 有一个$n\times m$棋盘,被分成若干小格。棋盘上还有一些多米诺骨牌。每张骨牌覆盖相邻的两个小格(即共用一条边的两个小格),没有两张骨牌重叠。 皮特认为这块棋盘太无聊了,需要涂上颜色。他要把多米诺骨牌的格子涂成黑色和白色。 ......
题解 Pinely Round 1863 CF

「题解」Codeforces 1863G Swaps

看成内向基环森林,操作 $u\to v$ 相当于让 $u$ 连向 $v$ 所连的点,$v$ 变成自环。发现如果一个点 $v$ 变成了自环,那么操作任意一个 $u\to v$ 都没有用。 从简单的情形出发,对于一个内向树(或者说环大小为 $1$ 的内向基环树),每次操作 $x\to fa_x$ 时,相 ......
题解 Codeforces 1863G Swaps 1863

Educational Codeforces Round 116

昨天只有3题,D题太难写了呜呜呜 A题上来写错WA了一发 B题开始写的二分,但是一直WA,前几天写二分写傻了,后面发现直接模拟不就完了吗? C题直接秒了,从低位往高位放,看看能不能够到下一个位置。 ```cpp #include #include #include #include #include ......
Educational Codeforces Round 116

【题解】Educational Codeforces Round 152(CF1849)

## A.Morning Sandwich ### 题目描述: 吃货小 C 喜欢三明治,他有三种材料:面包、芝士、火腿。正确的三明治组合应为一层面包和一层芝士或火腿之一轮流放置,以面包为结尾,例如面包-芝士-面包-火腿-面包就是合法的三明治。 给定每次做三明治的材料:$ b $ 面包,$ c $ 芝 ......
题解 Educational Codeforces Round 1849

Pinely Round 2 (Div. 1 + Div. 2)(A-D)

Dashboard - Pinely Round 2 (Div. 1 + Div. 2) - Codeforces A.题意是一共有n个用户,当前有a个用户在线,然后有m个用户上/下线通知,问是否有一时刻所有用户都在线。 简单的模拟,按照+-统计最大的和n的关系,和上线用户数量的关系判断下就行。 当 ......
Div Pinely Round A-D

用div+css实现聊天输入框,可输入、展示图片

<div class="dzm-textarea" id="dzm-textarea" contenteditable="true" @keypress="onKeypress" placeholder="输入文本" style="overflow: auto;"></div> const onKe ......
图片 div css

用伪类的方式给div加分割线,确保每个div宽度相同

div1:not(:last-child) ::after { content: ''; display: block; width: 1px; height: 24px; background-color: rgb(224, 224, 224); position: absolute; right ......
割线 宽度 div 方式

2023.8.28 LGJ ROUND

#### A Moolistar 有一张长长的纸条,上面打满了黑黑的小点。上面有 $n=2^k(k\le 30)$ 个均匀分布的点,编号从左到右、从 $0$ 到 $n-1$。Moolistar 开始将这条纸带对折,他把纸带右半边折到了左半边的下面,重复折叠 $k$ 次后,纸带变成了 $n$ 层的纸片 ......
ROUND 2023 LGJ 28