divisors atcoder regular contest

AtCoder-ABC-267 C - Index × A(Continuous ver

# [C - Index × A(Continuous ver.)](https://atcoder.jp/contests/abc267/tasks/abc267_c) ## 题目大意: 给定n个数($a_1,a_2...a_n$),从中选连续m个数,这m个数的和为:$\sum_{i=1}^mi* ......
AtCoder-ABC Continuous AtCoder Index ABC

文件解压 //problem/2928 or /contest/1709/problem/3

字符串套 递归 #include<bits/stdc++.h> using namespace std; char s[1005]; int n,i; string work(){ string p; int t = 0; while(++i <= n){ if(s[i] >= '0' && s[i ......
problem contest 文件 2928 1709

AtCoder Beginner Contest 314

# [AtCoder Beginner Contest 314 - AtCoder](https://atcoder.jp/contests/abc314) ## [A - 3.14 (atcoder.jp)](https://atcoder.jp/contests/abc314/tasks/abc ......
Beginner AtCoder Contest 314

AtCoder Beginner Contest 314

# [AtCoder Beginner Contest 314 - AtCoder](https://atcoder.jp/contests/abc314) ## A 3.14 ```c++ void solve() { string s = "3.1415926535897932384626433 ......
Beginner AtCoder Contest 314

NEW learning : Regular Expression

STEP 1 : The primary formula in the RE code base : result =re.match(pattern, str) #pattern 为要校验的规则 #str 为要进行校验的字符串 >>> import re >>> print(re.match('w ......
Expression learning Regular NEW

AtCoder Beginner Contest 314 A - Ex题解

# AtCoder Beginner Contest 314 ## A - 3.14 嗯,你可以用string 存小数点后的... ## B - Roulette 对于每一个金额,用个vector存 pair 存一个人赌了多少,以及是哪一个人 。 ## C - Rotate Colored Subs ......
题解 Beginner AtCoder Contest 314

Atcoder Beginner Contest 314

# 比赛情况 A 题直接按照题意用字符串输出就行了,很快切掉。 B 题按照题意模拟,但是各种 WA,吃了三发没过先去看 C。 C 题依然是模拟,这道题比较好写一次就过了,回去调 B。 B 题再吃了 3 发罚时终于过了。 先是没有特判输出 0 导致 `vector` 为空 WA/RE。 然后没有注意要 ......
Beginner Atcoder Contest 314

AtCoder Beginner Contest 214

AtCoder Beginner Contest 214 - AtCoder [ABC214D] Sum of Maximum Weights ( 典 ) 题意:给出一颗 N - 1 条边的树,求树上任意两点间路径上的最大值的和 这种问题考虑每条边单独看贡献,但是刚开始没太想明白怎么计算贡献,后面看 ......
Beginner AtCoder Contest 214

Atcoder杂题笔记

大概会把博客当草稿纸用( 当然写出正解还是会把正解贴出来。 - - - #### [ARC080E] Young Maids (待补代码) 给定正偶数 $N$。 给定 $N$ 元排列 $p = (p_1, p_2, ..., p_N)$. Snuke 打算根据下述步骤构造一个 $N$ 元排列 $q$ ......
Atcoder 笔记

SMU Summer 2023 Contest Round 11(2022-2023 ACM-ICPC Nordic Collegiate Programming Contest (NCPC 2022))

# [SMU Summer 2023 Contest Round 11](https://codeforces.com/group/L9GOcnr1dm/contest/466605)(2022-2023 ACM-ICPC Nordic Collegiate Programming Contest ......
Contest 2023 2022 Programming Collegiate

Atcoder ABC307_G-Approximate Equalization 序列dp

# [AT_ABC307_G-Approximate Equalization](https://atcoder.jp/contests/abc307/tasks/abc307_g "ABC307_G") [没想到还有Approximate Equalization II !!:AT_ABC313_ ......

UESTC 2023 Summer Training #23 for div2/2022-2023 ACM-ICPC Latin American Regional Programming Contest

# Preface 今天这场签到巨多,和昨天那场形成了鲜明的对比 但可惜后盘的时候我划了太久的水,最后接了B题然后没调出来成为战俘 最气的是赛后发现原来是没注意输出格式,本来可以说一遍过的题结果没写过,属实可惜,就当长教训了 **以后一定要尤其注意输入输出格式** # A. Asking for M ......
2023 Programming ACM-ICPC American Regional

AtCoder-ARC073_A Sentou

Sentou 【题意】: 有一个开关,当按下开关后的 T 秒内会一直放水,当在放水状态时,如果有人再次按下开关,那么停止放水,并从按下的那一刻起的 T 秒会再次一直放水,给出 n 个人按压开关的时间,问总共流出多少水 【思路】: 简单模拟 #include <bits/stdc++.h> using ......
AtCoder-ARC AtCoder Sentou ARC 073

B. Longest Divisors Interval

[link](https://codeforces.com/contest/1855/problem/B) 需要思考一下 如果这个题能做,那么肯定有一种比较可行的做法。 如果$[l,r]$是可行的,那么就意味着$[1,r-l+1]$是可行的 这是显然的,显然后者的每一个数在前者中必然有对应的倍数,所 ......
Divisors Interval Longest

[ABC142D] Disjoint Set of Common Divisors

首先我们知道,若一个数是另外两个数的公共因数,那么它肯定能整除另外两个数的最大公约数。 所以我们可以**枚举最大公约数的质因数**,再把这个质因数在最大公约数中除完,并且答案加一。 注意,要用 `long long` 不然 `int` 溢出之后还在循环,就会导致超时。 ```cpp #include ......
Disjoint Divisors Common 142D ABC

AtCoder Beginner Contest 313

AtCoder Beginner Contest 313 A - To Be Saikyo 思路:找到最大的,和第一个比较 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int12 ......
Beginner AtCoder Contest 313

AtCoder Beginner Contest 313

# [AtCoder Beginner Contest 313 - AtCoder](https://atcoder.jp/contests/abc313) ## [A - To Be Saikyo (atcoder.jp)](https://atcoder.jp/contests/abc313/t ......
Beginner AtCoder Contest 313

取数游戏 Atcoder-abc128_d

枚举两端取了几个数,将手中的负数从小到大放回序列即可 ``` #include using namespace std; int n, m, a[55], c[55], ans = -0x7fffffff; int main() { scanf("%d%d", &n, &m); for (int i ......
Atcoder-abc Atcoder 128 abc

Atcoder Grand Contest 058 F - Authentic Tree DP

考虑给 $f(T)$ 赋予组合意义。一个直观的想法是,在每条边中间新建一个节点,然后每次选择一条边对应的点,然后把它删掉,递归剩余的两个部分,但是你会发现这样分母不对,应该是 $n$ 但在这个模型里只有 $n-1$。 考虑魔改这个模型。我们在每个边对应的点下面添加 $998244352$ 个点,你发 ......
Authentic Atcoder Contest Grand Tree

Atcoder ABC313_C-Approximate Equalization 2

# [AT_ABC313_C-Approximate Equalization 2](https://atcoder.jp/contests/abc313/tasks/abc313_c "ABC313_C") ## Description: - 给定一个整数序列 $A=(A_1,A_2,···,A_ ......

Atcoder Beginner Contest 313

## [C](https://atcoder.jp/contests/abc313/tasks/abc313_c) > ## [D](https://atcoder.jp/contests/abc313/tasks/abc313_d) ## [E](https://atcoder.jp/contes ......
Beginner Atcoder Contest 313

AtCoder Beginner Contest 313

# A - To Be Saikyo ```cpp #include using namespace std; int main(){ ios::sync_with_stdio(0),cin.tie(0); int n; cin >> n; vector a(n); for( auto & i : ......
Beginner AtCoder Contest 313

「解题报告」AtCoder Beginner Contest 313

比赛地址:[AtCoder Beginner Contest 313 - AtCoder](https://atcoder.jp/contests/abc313) 后记:**请正确理解题意后再做题!!!** ## A - To Be Saikyo [A - To Be Saikyo (atcoder ......
Beginner AtCoder Contest 报告 313

AtCoder Beginner Contest (ABC) 313 D-E

Tasks - AtCoder Beginner Contest 313 PS:当时看到D过的比E多就一直在考虑D,但还没做出来,其实个人感觉E比D简单。 D - Odd or Even 交互题。有n个数,最多可以询问n次然后要求判断出这n个数的奇偶性。每次可以询问数组里任意k个元素的和是不是奇数 ......
Beginner AtCoder Contest ABC 313

AtCoder Beginner Contest 313

# AtCoder Beginner Contest 313 ## G - Redistribution of Piles ### 题意翻译: 给定一个数列$a_i(a_i>0, i\in[1,n])$,和一个数$s$(初值为0),有两种操作 - A - 全局非零数减一,减去的和加到$s$ - B ......
Beginner AtCoder Contest 313

AtCoder Beginner Contest 313 A-E Code

比赛链接:AtCoder Beginner Contest 313 - AtCoder A: #include <bits/stdc++.h> using namespace std; int main() { cin.tie(0); ios::sync_with_stdio(false); int ......
Beginner AtCoder Contest Code 313

AtCoder Beginner Contest 313

> ~~貌似这次很难,还好去吃烧烤了~~ ## [A - To Be Saikyo (abc313 A)](https://atcoder.jp/contests/abc313/tasks/abc313_a) ### 题目大意 给定$n$个数$a_i$,问第一个数要成为唯一的最大的数,应该加多少。 ......
Beginner AtCoder Contest 313

Practice on Codeforces and Atcoder in August

## [Educational Codeforces Round 151 A~E](https://www.cnblogs.com/oierpyt/p/17598936.html) ## [Codeforces Round #879 Div.2](https://www.cnblogs.com/oi ......
Codeforces Practice Atcoder August and

Codeforces 1855B:Longest Divisors Interval 最长的连续约数区间

# [1855B.Longest Divisors Interval](https://codeforces.com/contest/1855/problem/B "Codeforces 1855B") ## Description: - 对于一个整数 $n$ $(1\leq n \leq 10^{ ......
约数 区间 Codeforces Divisors Interval

Toyota Programming Contest 2023#4(AtCoder Beginner Contest 311)

# Preface 补下好久之前打的比赛博客 这场前面都写的挺稳的,然后一到G就降智了没写出来 # A - First ABC 签到 ```cpp #include #include #include #include #include #include #include #include #inc ......
Contest Programming Beginner AtCoder Toyota