atcoder another contest string

AtCoder Beginner Contest 213 H Stroll

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc213_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc213/tasks/abc213_h "AtCoder 传送门") 考虑一个朴素 dp ......
Beginner AtCoder Contest Stroll 213

atcoder mujin_pc_2017_d

[link](https://atcoder.jp/contests/mujin-pc-2017/tasks/mujin_pc_2017_d)。 我们注意到这个条件其实不是十分好 dp,通常而言的另一个方向就是尝试寻找条件的等价形式。 我们先考虑较简介的情况:直径 $L$ 上边数为偶。显然 $D=\ ......
mujin_pc atcoder mujin 2017 pc

2022 Shanghai Collegiate Programming Contest

# A. Another A+B Problem 暴力枚举出所有的情况,然后特判一下 ```cpp #include using namespace std; set res; int t; string a , b , c = "????????"; #define f(d) ((d[0]-'0' ......
Programming Collegiate Shanghai Contest 2022

AtCoder Beginner Contest 288(D,E,F)

# AtCoder Beginner Contest 288(D,E,F) ## D(思维) [D](https://atcoder.jp/contests/abc288/tasks/abc288_d) 有一个数组,然后有$q$次询问,每一次输入一对$l,r$,我们要判断这一段里面的数是不是好数组 ......
Beginner AtCoder Contest 288

java.lang.ClassCastException: com.alibaba.fastjson2.JSONArray cannot be cast to java.lang.String的解决

是这样的,今天跟着写springboot项目的时候,前端登录的时候报403错误。检查了半天,是后端的问题 报错代码: 第二句 报错提示如下 说是JSONArray不能转String,但我这也不是JSONArry转String而是Object转String啊。 网上搜了半天,用了好多种方法也没什么用 ......

The 2023 Guangdong Provincial Collegiate Programming Contest

# A - 算法竞赛 ```cpp #include using namespace std; #define int long long void solve(){ int st , n , ed; cin >> st >> n; map cnt; for( int i = 1 , x ; i > ......

Invalid prop: type check failed for prop “value”. Expected String, Number, got Undefined

记录一个报错问题,之前别的同事写的代码,还看了半天有点无语!! 下拉选择部门,联动动态赋值责任人下拉列表警告,导致选择责任人的时候无法正确赋值undefined。 究其原因是封装的表单formItem项中传入了下拉选项的映射字段,如下: 而在选择部门的时候又已经把动态数据遍历处理成了标准的label ......
prop Undefined Expected Invalid String

AtCoder Beginner Contest 258 Ex Odd Steps

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc258_h "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc258/tasks/abc258_h "AtCoder 传送门") 不错的矩阵快速幂优 ......
Beginner AtCoder Contest Steps 258

AtCoder Beginner Contest 289(E,F)

# AtCoder Beginner Contest 289(E,F) ## E(dijkstra) [E](https://atcoder.jp/contests/abc289/tasks/abc289_e) 这个题的大意就是有两个人,一个人在点$1$,一个人在点$n$,现在两个人要同时走(题目给 ......
Beginner AtCoder Contest 289

AtCoder Beginner Contest 303

## [A - Similar String (abc303 a)](https://atcoder.jp/contests/abc303/tasks/abc303_a) ### 题目大意 给定两个字符串,问这两个字符串是否相似。 两个字符串相似,需要每个字母,要么完全相同,要么一个是`1`一个是` ......
Beginner AtCoder Contest 303

AtCoder Regular Contest 153 D Sum of Sum of Digits

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc153_d "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc153/tasks/arc153_d "AtCoder 传送门") 又浪费一道好题![ ......
Sum AtCoder Regular Contest Digits

AtCoder Regular Contest 161

# Preface ARC战俘闪总出列 这场一上来就感觉状态不太对,先是A顺序敲反WA了一发,然后C题看到秒出一个贪心然后也WA了 看一眼榜发现D过的比C多,然后跑去把D写了,中间还偷偷挂了两发 最后50min回去沉淀C题,结果换了两种写法都还是一样的挂,后面发现想法还是有纰漏 总结:彩笔 # ** ......
AtCoder Regular Contest 161

AtCoder Regular Contest 148 E ≥ K

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc148_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc148/tasks/arc148_e "AtCoder 传送门") 是一道不错的计数。 ......
AtCoder Regular Contest 148

AtCoder Beginner Contest 290(D,E)

# AtCoder Beginner Contest 290(D,E) ## D (思维,数学) [D](https://atcoder.jp/contests/abc290/tasks/abc290_d) 这个题的大意就是我们需要标记$n$个位置,他是这样标记的,一开始有一个初始值为$0$的$x$ ......
Beginner AtCoder Contest 290

linux - 报错 Another app is currently holding the yum lock; waiting for it to exit... -解决

报错截图 执行指令 rm -f /var/run/yum.pid 然后再执行需要的指令即可 ......
currently Another holding waiting linux

CodeForces 1830C Hyperregular Bracket Strings

[洛谷传送门](https://www.luogu.com.cn/problem/CF1830C "洛谷传送门") [CF 传送门](https://codeforces.com/contest/1830/problem/C "CF 传送门") 每一步思路都非常自然的题。 考虑先从一些简单的 cas ......

AtCoder Regular Contest 161 E Not Dyed by Majority (Cubic Graph)

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc161_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc161/tasks/arc161_e "AtCoder 传送门") 给构造题提供了一种 ......
Majority AtCoder Regular Contest Cubic

AtCoder Beginner Contest 303 题解 A - E

## [A](https://atcoder.jp/contests/abc303/tasks/abc303_a) - Similar String ### 题目大意 忽略`0`和`o`的差别以及`1`和`l`的差别比较两个字符串。 ### 解题思路 1. 可以硬求,直接写个超长的if判断一下。 2 ......
题解 Beginner AtCoder Contest 303

AtCoder Beginner Contest 303 G Bags Game

[洛谷传送门](https://www.luogu.com.cn/problem/AT_abc303_g "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/abc303/tasks/abc303_g "AtCoder 传送门") 经典题,考虑区间 ......
Beginner AtCoder Contest Bags Game

Atcoder Beginner Contest ABC303 题解

题目: 。 # A 挨个判断。 # B 暴力枚举两个人是否会 in bad mood。 # C 用 map 或者 set 记录回血的位置。 # D 考虑 dp。 $f_{i,[0,1]}$ 表示当前到 $i$,是否开了大写锁定的方案数。 转移: ```cpp if(s[i]=='A'){ f[i][ ......
题解 Beginner Atcoder Contest ABC

AtCoder Beginner Contest 292(E,F,G)

# AtCoder Beginner Contest 292(E,F,G) ## E(图) [E](https://atcoder.jp/contests/abc292/tasks/abc292_e) 这个题的大意是给你一个有$n$个点,$m$条单向边的图,然后我们需要把满足下面条件的点连接在一起, ......
Beginner AtCoder Contest 292

String案例

package com.String; import java.util.Scanner; public class userDemo { public static void main(String[] args) { for (int i=0;i<3;i++) { Scanner sc=new ......
案例 String

String验证码案例

package com.String; import java.util.Random; public class SrtingDemo2 { //验证码 public static void main(String[] args) { System.out.println(createCode(4 ......
案例 String

String使用时的几个注意事项

package com.String; public class SrtingDemo1 { public static void main(String[] args) { //String使用时的几个注意事项 //1.String的对象是不可变的 String name="黑马"; name + ......
注意事项 事项 String

快速熟悉String提供的处理字符串的常用方法

package com.String; public class StringDemo { public static void main(String[] args) { //快速熟悉String提供的处理字符串的常用方法 String s="黑马java"; //1.获取字符串长度 System ......
字符串 字符 常用 方法 String

AtCoder Beginner Contest 298(D,F)

# AtCoder Beginner Contest 298(D,F) ## D(思维,模拟,快速幂) [D](https://atcoder.jp/contests/abc298/tasks/abc298_d) 大意是最初有一个数字$1$,然后进行$q$个操作 有三种操作 $1$,输入$1,x$, ......
Beginner AtCoder Contest 298

AtCoder Beginner Contest 299(E,F)

# AtCoder Beginner Contest 299(E,F) ## E (最短路) [E ](https://atcoder.jp/contests/abc299/tasks/abc299_e) 题目大意为有$n$个点和$m$条边,我们我个这些点匹配颜色(有两种颜色),但是要满足下面的条件 ......
Beginner AtCoder Contest 299

每日一题-Contest

[Contest](https://ac.nowcoder.com/acm/problem/13947) 本来以为要cdq什么的 看了题解之后发现它的排名是不重的(题目里好像没说啊)。 那么我们可以发现,对于两个三元组,如果对答案造成贡献,那么它们的关系一定是两个大于一个小于 或是两个小于一个大于, ......
Contest

Atcoder Grand Contest 062 D - Walk Around Neighborhood

csy/bx wjz/bx 首先将 $a$ 排序,如果 $\sum\limits_{i=1}^{n-1}a_id$ 的元素 $x$,满足 $\le d$ 的元素之和 $\ge x-d$,那我们肯定可以先走到 $(x-d,0)$ 然后一步走到 $(-d,0)$,否则可以证明是不行的。 从全局的角度考虑 ......
Neighborhood Atcoder Contest Around Grand

AtCoder Regular Contest 139 E Wazir

[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc139_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc139/tasks/arc139_e "AtCoder 传送门") 好题。 这种题一般 ......
AtCoder Regular Contest Wazir 139