regionals multiply contest problem

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

【cs 50 2022】lab2 && problem set2

lab2 #include <ctype.h> #include <cs50.h> #include <stdio.h> #include <string.h> // Points assigned to each letter of the alphabet int POINTS[] = {1, ......
amp problem 2022 lab2 set2

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

【每日一题】Problem 489B. BerSU Ball

[原题](https://codeforces.com/problemset/problem/489/B) #### 解决思路 排序+双指针 ```C++ #include int main() { int n; std::cin >> n; std::vector a(n + 1, 0); for ......
Problem BerSU Ball 489

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

【每日一题】Problem 416B. Art Union

[原题](https://codeforces.com/contest/416/problem/B) #### 解决思路 ![image](https://img2023.cnblogs.com/blog/3076745/202306/3076745-20230627001424047-208527 ......
Problem Union 416 Art

【每日一题】Problem 443B. Kuriyama Mirai's Stones

[原题](https://codeforces.com/contest/433/problem/B) #### 解决思路 1. 两个数组,一个未排序,一个排序; 2. 使用前缀和的方式减少时间复杂度 ```C++ #include int main() { std::ios::sync_with_s ......
Kuriyama Problem Stones Mirai 443

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

【cs50 2022】lab1 && problem set1

|lab1| #include <cs50.h> #include <stdio.h> int main(void) { // TODO: Prompt for start size int start_size; do{ start_size = get_int("Start size: "); ......
amp problem 2022 lab1 set1

AtCoder Beginner Contest(abc) 307

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

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 = ......
Contest Spring Round 2023 SMU

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

SMU Spring 2023 Contest Round 6

E. Expenditure Reduction 从左右往右找到包含B字符的最近位置,然后从这个位置有从右到左找回去找到包含完所有B字符的位置,这个区间就是答案 #include <bits/stdc++.h> #define inf 0x3f3f3f3f #define endl '\n' #de ......
Contest Spring Round 2023 SMU

AtCoder Beginner Contest(abc) 299

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

【每日一题】Problem 359B. Permutation

[原题](https://codeforces.com/problemset/problem/359/B) #### 解决思路 虽然题解思路里写着 $dp$,但是还是用最简单的 $math$ 方法写了 找规律题: 1. 如果结果为 $0$,只需要每个 $a_{2i-1}-a_{i}$ 同向即可,即都 ......
Permutation Problem 359

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 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

【每日一题】Problem 253B. Physics Practical

[原题](https://codeforces.com/problemset/problem/253/B) #### 解决思路 1. 定义 $dp[i][j]$ 为对 $i$ 元素做出选择后,要删除的最少元素个数 2. 对于 $i$,有两种情况,选或不选 1. 选:则找到 $y(y>2x)$ 的个数 ......
Practical Problem Physics 253

【每日一题】Problem 234C. Weather

[原题](https://codeforces.com/problemset/problem/234/C) #### 解决思路 - 还是先从二维数组开始,定义一个二维数组$dp$,对于 $dp[i,j]$,$i$ 表示第 $i$ 个元素,$j$ 表示当前元素的状态(正数或负数) $dp[i,0]$ ......
Problem Weather 234