div 1870 div1 div2

Codeforces Round 886 (Div. 4)

Codeforces Round 886 (Div. 4) A - To My Critics 思路:最大的两个数的和大于等于10则YES #include<bits/stdc++.h> using namespace std; #define int long long typedef pair< ......
Codeforces Round 886 Div

「解题报告」Codeforces Round 886 (Div. 4)

比赛地址:[Dashboard - Codeforces Round 886 (Div. 4) - Codeforces](https://codeforces.com/contest/1850) 由于时间太晚了,因此并没有参加比赛,题目都是后来补做的。 ## A. To My Critics [P ......
Codeforces 报告 Round 886 Div

Codeforces Round 886 (Div. 4)

# A. To My Critics ```cpp #include using namespace std; #define int long long void solve(){ vector a(3); for( auto & i : a ) cin >> i; sort( a.begin() ......
Codeforces Round 886 Div

Codeforces Round 501 (Div. 3)

Codeforces Round 501 (Div. 3) A - Points in Segments 思路:记录每个区间 #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int1 ......
Codeforces Round 501 Div

Vue3 响应式全局对象json 动态绑定界面四 (Div块样式 Json数据绑定)

效果 man.js 定义 响应式全局对象 globalData //全局对象 const globalData=reactive({ extTelTalkData: [ { userExten: "1000", userName: "刘亦菲", callStatus:"通话" }, { userEx ......
全局 样式 界面 对象 动态

Vue3 响应式全局对象json 动态绑定界面三 (Div块样式 字符串叠加)

效果 man.js 定义 响应式全局对象 globalData //全局对象 const globalData=reactive({ missedCallData:"", currentUserTel:"", }) app.provide('globalData', globalData); 在ma ......
字符串 全局 样式 字符 界面

Codeforces Round div.2 C

Smiling & Weeping 我对姑娘的喜欢,何止钟意二字 题目链接:Problem - C - Codeforces 自我分析:我感觉这是一道很有意义的题目,可以帮我们更好的理解二进制的本质 思路:首先先了解一下题目,我们是求由第i个数到末尾的异或和(异或:相同为0,不同为1),那么我们可以 ......
Codeforces Round div

Codeforces Round 882 div.2 B

Smiling & Weeping 玫瑰花你拿才好看,风景要和你看才浪漫--<-<-<@ B. Hamon Odyssey time limit per test 1 second memory limit per test 256 megabytes input standard input ou ......
Codeforces Round 882 div

Codeforces Round 882 div.2 A

Smiling&Weeping 总有人间一两风,填我十万八千梦 A. The Man who became a God time limit per test 1 second memory limit per test 256 megabytes input standard input outp ......
Codeforces Round 882 div

Codeforces Round 885 (Div. 2)

# Preface 打的就是依托答辩居然也能上分,看来手稳还是重要的说 D题半场开香槟以为随便写,然后没想到怎么处理这个局部没有三分性的函数,直接GG 后面听学长一说其实分成四种函数分别求最值即可直接恍然大悟,只能说还是太菜太菜 而且F好像是个蓝桥杯的某个题的弱化版,我说比赛的时候怎么那么多人艹过去 ......
Codeforces Round 885 Div

Codeforces Round #885 (Div. 2) A-D

[比赛链接]() # A ## 代码 ```c++ #include using namespace std; using ll = long long; bool solve() { int n, m, k; cin >> n >> m >> k; int x, y; cin >> x >> y; ......
Codeforces Round 885 A-D Div

Codeforces Round 885 (Div. 2)

# A. Vika and Her Friends 枚举所有的点,判断是否存在点与Vika的距离和其他 k 个人的距离的奇偶性不同。 ```cpp #include using namespace std; #define int long long const int mod = 99824435 ......
Codeforces Round 885 Div

Codeforces Round 885 (Div. 2)

Codeforces Round 885 (Div. 2) A - Vika and Her Friends 思路:移动后再判断,所以距离为奇数时朋友永远抓不到她 #include<bits/stdc++.h> using namespace std; #define int long long t ......
Codeforces Round 885 Div

【2023.07.14】Atcoder:past201912 - 第一回 アルゴリズム実技検定(div4+区域赛难度)过题小记

## G - Division ### 解法一:位运算+状压枚举(赛时思路) 范围显然,可以跑 $2^n$ 的算法,考虑位运算状态压缩。以 $\mathcal O(2^n \cdot 2^n)$ 的复杂度分别枚举位于第一组、第二组中的人,随后计算每一种分组的快乐值,代码较长,赛时敲了半个小时,不过好 ......
小记 难度 区域 Atcoder 201912

Codeforces Round 885 (Div. 2) A-D

## A. Vika and Her Friends 题意:有一个n*m大小的矩阵,vika在点(a,b),她的k个朋友在分别(xi,yi),所有人每分钟都可以上下左右走一格,每一分钟vika先走,她的朋友后走,不能不走,问vika能否躲过朋友。 ### Solution 结论题,只要有一个朋友和她 ......
Codeforces Round 885 A-D Div

Codeforces Round #885(Div. 2)C

##C. 维卡和价格标签 每个测试的时间限制为1秒 每个测试的内存限制为256兆字节 输入:标准输入 输出:标准输出 维卡来到她最喜欢的化妆品店"Golden Pear"。她注意到n个物品的价格自她上次光顾以来发生了变化。 她决定分析价格的变化,并计算每个物品的旧价格和新价格之间的差异。 维卡喜欢计 ......
Codeforces Round 885 Div

Codeforces Round 885 (Div. 2) B

## B. 维卡和木桥 每个测试的时间限制为1秒 每个测试的内存限制为256兆字节 输入:标准输入 输出:标准输出 夏天,维卡喜欢去她的乡间别墅。那里有一切供放松的设施:舒适的秋千、自行车和一条河流。 河上有一座木桥,由n块木板组成。它相当老旧而不吸引人,所以维卡决定给它上漆。在小屋里,他们找到了k ......
Codeforces Round 885 Div

Codeforces Round #885 (Div.2) Editorial

B - Vika and the Bridge 题意:从桥的一边走到另一边,每次只能踩在相同颜色的木板上,并且有一次操作,可以修改期中一个模板的颜色。 问那种走法,跨过模板的最大值最小。 思路:首先可以统计出选择每种颜色的,跳过木板的的个数,如果不能修改颜色,那么答案一定是每个颜色所对应的最大值的最 ......
Codeforces Editorial Round 885 Div

codeforses Round 885(div 2) A

## 翻译: A. 维卡和她的朋友们 每个测试的时间限制为1秒 每个测试的内存限制为256兆字节 输入:标准输入 输出:标准输出 维卡和她的朋友们去了一家购物中心,可以将其表示为一个边长为n和m的矩形网格。每个房间都有坐标(a,b),其中1≤a≤n,1≤b≤m。因此,我们称坐标为(c,d)的大厅为它 ......
codeforses Round 885 div

Codeforces Round 883 (Div. 3)

只写部分题目。 ## A. Rudolph and Cut the Rope ```cpp #include using namespace std; #define int long long const int N = 2e5 + 5; int t, n, a[N], b[N]; signed ......
Codeforces Round 883 Div

Educational Codeforces Round 33 (Rated for Div. 2)

# Educational Codeforces Round 33 (Rated for Div. 2) https://codeforces.com/contest/893 昨日vp,今日补完F D贪心,思路值得学习; E组合数学推式子,式子不难,关键在于模型抽象 F主席树,调了老半天,关键在于要 ......
Educational Codeforces Round Rated Div

Codeforces Round 896 Div2 A-D题解

# Codeforces Round 896 ## A. Politics 这题问的是,给一些人的在n个议题的观点,然后你可以随意安排顺序,每个议题人多的赢,反对派会离开,问随便安排议题,最多留下多少人,包括我自己 这个题刚开始愣了半天,但是想到,那只要把所有和我观点一致的给留下来不就行了???然后 ......
题解 Codeforces Round Div2 896

Codeforces Round #875 (Div. 2) A-D

[比赛链接](https://codeforces.com/contest/1831) # A ## 代码 ```c++ #include using namespace std; using ll = long long; bool solve() { int n; cin >> n; for ( ......
Codeforces Round 875 A-D Div

Educational Codeforces Round 137 (Rated for Div. 2)

Educational Codeforces Round 137 (Rated for Div. 2) A. Password void solve(){ int n=read(); for(int i=1;i<=n;i++)int x=read(); cout<<combination(10-n, ......
Educational Codeforces Round Rated 137

Codeforces Round #881 (Div. 3) A-F

[比赛链接](https://codeforces.com/contest/1843) # A ## 代码 ```c++ #include using namespace std; using ll = long long; int a[57]; bool solve() { int n; cin ......
Codeforces Round 881 A-F Div

Codeforces Round 882 (Div. 2) A-E

Codeforces Round 882 (Div. 2) 2023.7.6 这场还有意思,出题的背景都很相似,通过不同的操作实现不同的要求。 ......
Codeforces Round 882 A-E Div

Codeforces Round 881 (Div. 3) D - Apple Tree(dfs)

https://codeforces.com/contest/1843/problem/D ``` 题目大意: 一颗树中,每次给定两个结点,每个结点都可以移动到孩子结点,最后可以到达叶子结点, 问我们这两个结点最终移到叶子结点有多少种组合? (其实就是让求以这两个节点为根的子树的叶子结点个数的乘积) ......
Codeforces Apple Round Tree 881

How to ak 【LGR-145-Div.4】洛谷入门赛 #14?

## A 数字判断 ``` #include #include #include #include #define re register #define lll __int128 #define gc getchar #define pt putchar #define int long long ......
How 145 Div LGR 14

Codeforces Round 884 (Div. 1 + Div. 2)

Codeforces Round 884 (Div. 1 + Div. 2) A - Subtraction Game 思路:显而易见为a+b #include<bits/stdc++.h> using namespace std; #define int long long typedef pai ......
Codeforces Div Round 884

Codeforces Round 875 (Div. 2)

Codeforces Round 875 (Div. 2) A - Twin Permutations 思路:让序列全相等为n+1即可 #include<bits/stdc++.h> using namespace std; typedef pair<int,int>PII; typedef pai ......
Codeforces Round 875 Div