non-adjacent adjacent matching atcoder

AtCoder Beginner Contest(abc) 297

*** ## B - [chess960](https://atcoder.jp/contests/abc297/tasks/abc297_b) #### 题目大意 >给定一串字符串, 里面一定包含2个' B ', 2个' R ', 1个' K ', 问该字符串是否满足以下两个条件, 一是两个'B' ......
Beginner AtCoder Contest 297 abc

AtCoder Beginner Contest 296 Ex Unite

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc296_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc296/tasks/abc296_h "AtCoder 传送门") 不错的 dp。 考 ......
Beginner AtCoder Contest Unite 296

AtCoder Beginner Contest 227 H Eat Them All

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc227_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc227/tasks/abc227_h "AtCoder 传送门") 好奇特的题。 考虑 ......
Beginner AtCoder Contest Them 227

JS中字符串28种常用API总结,substring、slice、JSON.stringify、match、split、search、indexOf......

一、引言 在前端开发中,处理字符串是一项常见的任务。JavaScript 提供了一系列的字符串 API,用于操作和处理字符串数据。字符串常用的API方法有很多,包括查找字符串、截取字符串、替换字符串、分割字符串、大小写转换、字符串拼接和字符串比较等等。本文将介绍一些常用的字符串 API,并提供相应的 ......
字符串 substring stringify 字符 常用

AtCoder Beginner Contest 306(ABC 306) E~F补题

# E ### 题目大意 给定数字\$k\$,规定数组 $A$ 的函数 $f(A)$ :$A$ 数组前 $k$ 大数字的和 - 如 $A=[1,~3,~7,~4]$ ,$k=2$ ,则 $f(A)=7+4=11$ 现在给定最大数组长度 $n$ ,有 $q$ 组操作,每次将第 $x$ 个数字修改为 $ ......
306 Beginner AtCoder Contest ABC

AtCoder Beginner Contest 228 G Digits on Grid

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc228_g "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc228/tasks/abc228_g "AtCoder 传送门") ?这啥啊,不会。 ......
Beginner AtCoder Contest Digits Grid

AtCoder Beginner Contest 072

# A - Sandglass2 ```cpp #include using namespace std; #define int long long int32_t main() { int a , b; cin >> a >> b; cout using namespace std; #defi ......
Beginner AtCoder Contest 072

AtCoder Beginner Contest 238 Ex Removing People

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc238_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc238/tasks/abc238_h "AtCoder 传送门") 考虑期望转计数,方 ......
Beginner Removing AtCoder Contest People

AtCoder Beginner Contest 307 Ex Marquee

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc307_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc307/tasks/abc307_h "AtCoder 传送门") 一开始看错题了,看 ......
Beginner AtCoder Contest Marquee 307

AtCoder Beginner Contest(abc) 307

*** ## A - [Weekly Records](https://atcoder.jp/contests/abc307/tasks/abc307_a) #### 题目大意 >小莫每天跑步, 输入n周每天的步数, 输出每周跑的总步数; #### 解题思路 >签到题不多嗦了; #### 神秘代码 ......
Beginner AtCoder Contest 307 abc

python | 正则匹配中re.match().group()函数的使用

正则表达式中,`group()`用来提出分组截获的字符串,`()`用来分组。 **例如:** ```python import re a = "123abc456" print re.search("([0-9]*)([a-z]*)([0-9]*)",a).group(0) #123abc456,返 ......
正则 函数 python match group

AtCoder Beginner Contest 307 G Approximate Equalization

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc307_g "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc307/tasks/abc307_g "AtCoder 传送门") 考虑我们如果确定了 ......

AtCoder Beginner Contest 245 Ex Product Modulo 2

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc245_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc245/tasks/abc245_h "AtCoder 传送门") 很好的题。 下文令 ......
Beginner AtCoder Contest Product Modulo

AtCoder Beginner Contest 307 ABCDE

# [AtCoder Beginner Contest 307](https://atcoder.jp/contests/abc307) ## **A - Weekly Records** ### Problem Statement 题意:告诉你有几个礼拜,问你每个礼拜走的路程和。 ### Solu ......
Beginner AtCoder Contest ABCDE 307

AtCoder Beginner Contest 267 ABCDE

# [AtCoder Beginner Contest 267](https://atcoder.jp/contests/abc267) ## **A - Saturday** ### Problem Statement 题意:问你给定的天到礼拜六还要几天。 思路:直接算。 ```c++ #incl ......
Beginner AtCoder Contest ABCDE 267

AtCoder Beginner Contest 252 Ex K-th beautiful Necklace

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc252_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc252/tasks/abc252_h "AtCoder 传送门") ~~不知道为什么可 ......
beautiful Beginner Necklace AtCoder Contest

AtCoder Beginner Contest 307

## [A - Weekly Records (abc307 A)](https://atcoder.jp/contests/abc307/tasks/abc307_a) ### 题目大意 给定$n$周每天的散步量,求每周七天的散步量的和。 ### 解题思路 累计求和即可。 神奇的代码 ```cpp ......
Beginner AtCoder Contest 307

AtCoder Beginner Contest 212(E,F)

# AtCoder Beginner Contest 212(E,F) ## E(dp) [E](https://atcoder.jp/contests/abc212/tasks/abc212_e) 题目大意为有$n$个点,我们需要找到$k+1$个点,用数组$A$表示,其中,$A_i$和$A_{i+ ......
Beginner AtCoder Contest 212

AtCoder Beginner Contest(abc) 299

*** ## A - [Treasure Chest](https://atcoder.jp/contests/abc299/tasks/abc299_a) #### 题目大意 >给定一个由' | ' ' * '和' . '组成的字符串, 并且保证一定有1个' * '和2个' | ', 检查' * ......
Beginner AtCoder Contest 299 abc

AtCoder Regular Contest 154 E Reverse and Inversion

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc154_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc154/tasks/arc154_e "AtCoder 传送门") 好题! 考虑如何更 ......
Inversion AtCoder Regular Contest Reverse

AtCoder Regular Contest 154 D A + B > C ?

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc154_d "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc154/tasks/arc154_d "AtCoder 传送门") **看到这种题,应 ......
AtCoder Regular Contest 154 gt

AtCoder Regular Contest 154 C Roller

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc154_c "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc154/tasks/arc154_c "AtCoder 传送门") 被这题干爆了![] ......
AtCoder Regular Contest Roller 154

【题解】AtCoder-ABC306G Return to 1

这也太强了! 容易想到的是用若干环拼出这个 $10^{10^{100}}$,也就是这些环的 $\gcd \mid 10$。 之后就不会了。 先正图反图两次 DFS,只留下 $1$ 所在强连通分量里的边,对正图跑 DFS 生成树,定义其深度从 $0$ 开始,然后有一个结论是:对于任何正整数 $a$,图 ......
题解 AtCoder-ABC AtCoder Return ABC

AtCoder Beginner Contest 174

# A - Air Conditioner ```cpp #include using namespace std; int main() { int x; cin >> x; if( x >= 30 ) cout using namespace std; #define int long long ......
Beginner AtCoder Contest 174

AtCoder Beginner Contest 229(F,G)

# AtCoder Beginner Contest 229(F,G) ## F(二部图,dp) [F](https://atcoder.jp/contests/abc229/tasks/abc229_f) 这个题大致是给你$n+1$个点,为$0$到$n$,然后$n$条边是点$0$到$1...n$这 ......
Beginner AtCoder Contest 229

match_all 查询所有【ElasticSearch】

/** * match_all 查询所有 */ @Test public void test02() throws IOException { SearchRequest searchRequest = new SearchRequest("hotel"); SearchSourceBuilder ......
ElasticSearch match_all match all

match查询【ElasticSearch】

/** * match 分词再查询 */ @Test public void test01() throws IOException { //todo 2.搜索条件封装 SearchRequest searchRequest = new SearchRequest("hotel"); //todo ......
ElasticSearch match

AtCoder Beginner Contest(abc) 306

*** ### A - [Echo](https://atcoder.jp/contests/abc306/tasks/abc306_a) #### 题目大意 >把一个字符串的每个字符输出两遍 #### 解题思路 >签到题不多嗦了; #### 神秘代码 ```c++ #include #define ......
Beginner AtCoder Contest 306 abc

AtCoder Beginner Contest(abc) 305

*** ### A - [Water Station](https://atcoder.jp/contests/abc305/tasks/abc305_a) #### 题目大意 >给定一个0~100之间的数, 输出离它最近的5的倍数 #### 解题思路 >签到题不多嗦了; #### 神秘代码 ``` ......
Beginner AtCoder Contest 305 abc

AtCoder Regular Contest 162 F Montage

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc162_f "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc162/tasks/arc162_f "AtCoder 传送门") 题目限制可以被改写 ......
AtCoder Regular Contest Montage 162