deck-building codeforces building 1906k

Codeforces Round 905 (Div. 3)

Codeforces Round 905 (Div. 3) A. Morning 题意:操作:显示,向前走都为一次操作;目标:显示这四个数 思路:0->10,然后依次作差就行 #include <bits/stdc++.h> using namespace std; void solve(){ ch ......
Codeforces Round 905 Div

Codeforces Round 910 (Div. 2)

Codeforces Round 910 (Div. 2) A. Milica and String 解题思路: 统计给定字符串\(s\)中的\(B\)的数量,记录为\(cnt\)。 如果\(cnt == k\):输出0; 如果\(cnt < k\):从左往右数,将第\(cnt - k\)个\(A\ ......
Codeforces Round 910 Div

Codeforces Round 909 (Div3)(本菜鸟只补到了E)

Codeforces Round 909 (Div.3) A. Game with Integers 水题,就是可以被3整除的输出“Second”,不能被3整除的输出“First” #include<iostream> using namespace std; int main() { int t; ......
Codeforces Round Div3 909 Div

Codeforces Round 910 (Div. 2)

Preface 这场其实挺早之前就写完代码了,但一直没时间写博客(玩云顶新赛季玩的) 感觉F其实不难但为什么就是想不出来呢,感觉后面的题就是很难突破的说 A. Milica and String 分类讨论+枚举即可 #include<cstdio> #include<iostream> #inclu ......
Codeforces Round 910 Div

CodeForces 1898F Vova Escapes the Matrix

洛谷传送门 CF 传送门 Type \(1\) 是简单的。直接输出空格个数即可。 Type \(2\) 也是简单的。显然要堵住不在起点和出口最短路上的格子,答案为空格个数减去起点到任一出口的最短路。 考虑 Type \(3\)。容易发现答案为空格个数减去起点到任两个出口的最短路(公共部分只算一次)。 ......
CodeForces Escapes Matrix 1898F 1898

Codeforces Round 697 (Div. 3)

A. Odd Divisor #include<bits/stdc++.h> using namespace std; #define int long long //#define int __int128 #define double long double typedef pair<int,i ......
Codeforces Round 697 Div

[Codeforces] CF1475C Ball in Berland 题解

Ball in Berland - 洛谷 题意 在毕业典礼上,有​个男孩和​个女孩准备跳舞,不是所有的男孩和女孩都准备结伴跳舞。 现在你知道​个可能的舞伴,你需要选择其中的两对,以便使没有人重复地出现在舞伴里,求可能的数量。 思路 暴力 最朴素,也是简单的方法,就是通过暴力组合进行配对。 #incl ......
题解 Codeforces Berland 1475C 1475

Codeforces Round 905 (Div. 2)

\(A. Chemistry\) https://codeforces.com/contest/1888/submission/233505834 \(B. Raspberries\) https://codeforces.com/contest/1888/submission/233506474 ......
Codeforces Round 905 Div

Codeforces Round 910 E

tilian 我们发现可以通过交换相邻两个的方式让字典序小的任意移动 我们目标串t 要是t[0]为 c 我们肯定是找到第一个合法的c的位置 每次去找合法并且最优的 那么哪些是不合法的呢 比如我 比c小的 a,b 位置还在第一个c前肯定就不能用了 我们用26个set维护这个过程即可 void solv ......
Codeforces Round 910

Codeforces Round 909 (Div. 3)

Codeforces Round 909 (Div. 3) A. Game with Integers 题意: 给定一个数\(x\),\(A,B\)两人轮流进行操作,\(A\)先操作。每次给\(x\)加一或者减一,操作完后\(x \% 3 == 0\)者获胜。判断获胜者。 解题思路: 判断\(A\) ......
Codeforces Round 909 Div

codeforces 50题精选训练

本章节参考:2020,2021 年 CF 简单题精选 - 题单 - 洛谷 | 计算机科学教育新生态 (luogu.com.cn) 首先,很容易观察到点的一些特征: - 都在第一象限;- 点的分布越来越稀疏。 以样例为例: 还有无限个点没有画出来。 根据点的分布越来越稀疏的特性,能不能发现收集点的规律 ......
codeforces

Codeforces Round 905 (Div. 3) ABCDEG1

Codeforces Round 905 (Div. 3)ABCDEG1 A. Morning 思路:签到,直接模拟。 // AC one more times // nndbk #include <bits/stdc++.h> using namespace std; typedef long l ......
Codeforces ABCDEG1 ABCDEG Round 905

Educational Codeforces Round 99 (Rated for Div. 2)

https://codeforces.com/contest/1455 很久没有vp了,感觉思维又僵化了 A题直接看样例,直接猜是长度。 B题首先如果是 \(x=\frac{n(n+1)}{2}\),那么就是n 否则如果\(x=\frac{n(n+1)}{2}+y\),分成两类 y=n,ans=n+ ......
Educational Codeforces Round Rated Div

Educational Codeforces Round 156 (Rated for Div. 2) ABCD

Educational Codeforces Round 156 (Rated for Div. 2) ABCD A. Sum of Three 题意:给定正整数 \(n\),判断是否存在正整数 \(a\),\(b\),\(c\) 满足: \(a+b+c=n\)。 \(a\),\(b\),\(c\) ......
Educational Codeforces Round Rated ABCD

Codeforces Round 904 (Div. 2)

\(A. Simple Design\) https://codeforces.com/contest/1884/submission/233628914 \(B. Haunted House\) https://codeforces.com/contest/1884/submission/2336 ......
Codeforces Round 904 Div

Codeforces Round 910 (Div. 2) - D

目录D. Absolute Beauty Codeforces Round 910 (Div. 2) D. Absolute Beauty 观察可知,只要当交换的 \(i\) 和 \(j\) 满足 $ max(a_i, b_i) < min(a_j, b_j)$ 或者 $ min(a_i, b_i) ......
Codeforces Round 910 Div

CodeForces 合集第三弹

这个合集主要是近期的 CodeForces 比赛题。 1898. Codeforces Round 910 (Div. 2) https://codeforces.com/contest/1898 A. Milica and String 很容易发现答案不超过 \(1\),然后分类讨论当前 B 的个 ......
CodeForces

Codeforces Round 785 (Div. 2)

A - Subtle Substring Subtraction /* * __ ~~~~~~~~~~~ ___ * . . ~~// ...... __--~ ~~ * -. \_|// |||\\ ~~~~~~::::... /~ * ___ _ _-~o~ \/ ||| \\ _/~~- * ......
Codeforces Round 785 Div

Codeforces Round 908 (Div. 2)

Preface 补一下之前期中考落下的CF yysy因为这学期又开始断电了,所以除了周五周六晚上的CF可能都不一定会去打,都会以后面补题为主 A. Secret Sport 由于题目保证给出的状态合法,因此直接输出最后一个字符即可 #include<cstdio> #include<iostream ......
Codeforces Round 908 Div

安装install的项目的报错sass npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js` npm ERR! Exit status 1 npm ERR! npm ERR! Fail ......
sass node postinstall node-sass install

[emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size:32

解决nginx报错 nginx: [emerg] could not build server_names_hash, you should increase server_nam es_hash_bucket_size: 32 nginx: configuration file xxxx/conf ......

Codeforces Round 910 (Div. 2)

Codeforces Round 910 (Div. 2) 基本情况 做A题的速度比之前快多了,大概20分钟搞定。 B题想了一个贪心错解,想用链表实现,但是不熟练,实现太慢,而且还被hack了。 但是自己hack掉了,造数据上进步。 B. Milena and Admirer 贪心思路 发现一个大于 ......
Codeforces Round 910 Div

Codeforces Round 910 (Div. 2)

\(A. Milica and String\) https://codeforces.com/contest/1898/submission/233431132 \(B. Milena and Admirer\) https://codeforces.com/contest/1898/submis ......
Codeforces Round 910 Div

Codeforces Round 909 (Div. 3)

Codeforces Round 909 (Div. 3) 基本情况 第一次在 CF 上 AC 了超过一道题。(毕竟是Div3) B 题卡住了很久。 D 没有深入思考。 [B. 250 Thousand Tons of TNT](Problem - B - Codeforces) 一开始死活过不了的 ......
Codeforces Round 909 Div

Tauri 首次build

Tarui入坑 依赖下载失败 在第一次构建的时候,需要从Github上下载一些依赖,由于众所周知的原因,大概率下载失败,这里给出一段Powershell脚本,仅供使用: mkdir temp cd temp Invoke-WebRequest -Uri "https://github.com/wix ......
Tauri build

Educational Codeforces Round 13 E

tilian 最开始看错了以为是 可以任意选择两人or选择一人胜出 但题意是 可以选择下一个擂主是谁 考虑dp的话 我们显然需要记录一个state以及当前擂主是谁 转移就是 dp[state][i]=max(dp[state][i],dp[state(1<<j)][j]*a[i][j]+dp[sta ......
Educational Codeforces Round 13

Codeforces Round 909 (Div. 3) A-E

Codeforces Round 909 (Div. 3) A. Game with Integers 题意: 两人轮流操作,可以加一或减一,若结果能被3整除则输出First,否则输出Second 思路: 若n不能被3整除,则第一个人可以直接通过加一或减一使结果被3整除,反之则一定不能 代码: #i ......
Codeforces Round 909 A-E Div

练习记录-cf-Codeforces Round 909 (Div. 3)(A-G)

好久没打div了 然后思维太差 现在被抓回来继续打了QWQ 终于被我逮到一场G数据结构的 ak了 既然ak了就开心地写下题解 别被hack别被hack别被hack 这场挺简单的 之前打的div3都好难qaq A. Game with Integers 题意:给一个数字,两人轮流操作,可以+1或者-1 ......
cf-Codeforces Codeforces Round 909 A-G

idea中out目录、target目录和build目录的区别?

在 IntelliJ IDEA 中,out 目录和 target 目录是两个不同的目录,它们用于存放编译和构建输出的文件。它们的区别如下: out 目录:out 目录是 IntelliJ IDEA 的默认输出目录。它用于存放项目的编译输出文件,包括编译后的类文件和其他资源文件。在大多数情况下,out ......
目录 target build idea out

Xcode building for iOS Simulator, but linking in an object file built for iOS, for architecture 'arm64'

https://stackoverflow.com/questions/63607158/xcode-building-for-ios-simulator-but-linking-in-an-object-file-built-for-ios-f 改项目配置 EXCLUDED_ARCHS[sdk=i ......
for architecture Simulator iOS building