beginner atcoder contest 162
AtCoder Regular Contest 163 C Harmonic Mean
[洛谷传送门](https://www.luogu.com.cn/problem/AT_arc163_c "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/arc163/tasks/arc163_c "AtCoder 传送门") 这题是不是想到裂项 ......
AtCoder ABC307D 题解
## AtCoder ABC307D Mismatched Parentheses 题解 ### 思路分析 #### First —— 配对括号序列 首先,每个右括号肯定是要与其左边最近的左括号配对。因此,我们便可以使用一个栈来进行存放左括号的下标。当有右括号时,便可以弹出栈顶元素,但是栈为空时,便 ......
AtCoder Beginner Contest 308 A~F
[AtCoder Beginner Contest 308](https://atcoder.jp/contests/abc308) ![image-20230702174419133](C:\Users\magicat\AppData\Roaming\Typora\typora-user-imag ......
AtCoder Beginner Contest 308
A: 1 #include<cstdio> 2 #include<cstring> 3 #include<algorithm> 4 #include<iostream> 5 #include<string> 6 #include<vector> 7 #include<stack> 8 #includ ......
AtCoder Beginner Contest 308
> 这几天在收拾东西搬家,先附上代码,晚点补上题解 > 感觉这次FG都写不太明白 ## [A - New Scheme (abc308 A)](https://atcoder.jp/contests/abc308/tasks/abc308_a) ### 题目大意 给定八个数,问是否满足以下要求: - ......
【atcoder beginner 308E - MEX】
前缀和 二分查找 打表枚举 代码如下 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.StreamTokenizer; import ......
AtCoder Grand Contest 021 E Ball Eat Chameleons
[洛谷传送门](https://www.luogu.com.cn/problem/AT_agc021_e "洛谷传送门") [AtCoder 传送门](https://atcoder.jp/contests/agc021/tasks/agc021_e "AtCoder 传送门") 容易发现一个变色龙 ......
AtCoder Beginner Contest 307(E,F,G)
# AtCoder Beginner Contest 307(E,F,G) ## E(dp) [E](https://atcoder.jp/contests/abc307/tasks/abc307_e) 这个题大意就是我们需要组成一个长度为$n$的数组,满足两个相邻的数字不可以相等,其中,$a_1$ ......
Educational Codeforces Round 151 [div.2 #A-C] 赛后总结(contest/1845)
### [link](https://codeforces.com/contest/1845 "Educational Codeforces Round 151") $\textcolor{52C41A}{A}-\textcolor{FADB14}{B}-\textcolor{FADB14}{C}- ......
微软物联网基础教程(IoT-For-Beginners)读后感
- [仓库地址](#仓库地址) - [总体评价](#总体评价) # 仓库地址 https://github.com/microsoft/IoT-For-Beginners # 总体评价 巨硬出的东西,质量还是可以的,深度也如仓库名一样只是 for beginners,作为真正的 beginners ......
AtCoder Beginner Contest 280 ABCDE
# [AtCoder Beginner Contest 280](https://atcoder.jp/contests/abc280) ## **A - Pawn on a Grid** ### Problem Statement 题意:给你$N$行$M$列的网格,问你有多少个# ### Solu ......
AtCoder Beginner Contest(abc) 297
*** ## B - [chess960](https://atcoder.jp/contests/abc297/tasks/abc297_b) #### 题目大意 >给定一串字符串, 里面一定包含2个' B ', 2个' R ', 1个' K ', 问该字符串是否满足以下两个条件, 一是两个'B' ......
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。 考 ......
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 传送门") 好奇特的题。 考虑 ......
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$ 个数字修改为 $ ......
ARC162E Strange Constraints
## 题意 给定长度为 $n$ 的序列 $A$,求序列 $B$ 的个数模 $998244353$,满足以下条件: - 值域 $[1, n]$。 - $i$ 的个数不超过 $A_i$。 - $B_i$ 的个数不超过 $A_i$。 $1 \le n \le 500$。 ## 题解 发现按照某种顺序去构造 ......
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 传送门") ?这啥啊,不会。 ......
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 ......
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 传送门") 考虑期望转计数,方 ......
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 传送门") 一开始看错题了,看 ......
AtCoder Beginner Contest(abc) 307
*** ## A - [Weekly Records](https://atcoder.jp/contests/abc307/tasks/abc307_a) #### 题目大意 >小莫每天跑步, 输入n周每天的步数, 输出每周跑的总步数; #### 解题思路 >签到题不多嗦了; #### 神秘代码 ......
SMU Spring 2023 Contest Round 7
A. Programming Contest 签到题. 输入输出读完应该就懂了: 从y1枚举到y2,若枚举的年份不在停办年份里则答案加一 void solve() { int n,m; cin >> n; vector<int> a(N),year(N); cin >> m; for(int i = ......
Basic(Beginner's All-purpose Symbolic Instruction Code)是一种高级编程语言,最初在1964年由John G. Kemeny和Thomas E. Kurtz在Dartmouth College开发而成。Basic的设计初衷是为了让非专业程序员能够轻松学习和使用编程语言。
Basic(Beginner's All-purpose Symbolic Instruction Code)是一种高级编程语言,最初在1964年由John G. Kemeny和Thomas E. Kurtz在Dartmouth College开发而成。Basic的设计初衷是为了让非专业程序员能够轻 ......
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 传送门") 很好的题。 下文令 ......
AtCoder Beginner Contest 307 ABCDE
# [AtCoder Beginner Contest 307](https://atcoder.jp/contests/abc307) ## **A - Weekly Records** ### Problem Statement 题意:告诉你有几个礼拜,问你每个礼拜走的路程和。 ### Solu ......
AtCoder Beginner Contest 267 ABCDE
# [AtCoder Beginner Contest 267](https://atcoder.jp/contests/abc267) ## **A - Saturday** ### Problem Statement 题意:问你给定的天到礼拜六还要几天。 思路:直接算。 ```c++ #incl ......
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 传送门") ~~不知道为什么可 ......
AtCoder Beginner Contest 307
## [A - Weekly Records (abc307 A)](https://atcoder.jp/contests/abc307/tasks/abc307_a) ### 题目大意 给定$n$周每天的散步量,求每周七天的散步量的和。 ### 解题思路 累计求和即可。 神奇的代码 ```cpp ......
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+ ......