SMU winter 2025 Personal Round 1
摘要:
SMU winter 2025 Personal Round 1 A. Level Statistics 思路 注意两方增长值要确保 \(\Delta c\le \Delta p\)。 代码 #include <bits/stdc++.h> using namespace std; using i6
2025寒假天梯赛训练1
摘要:
2025寒假天梯赛训练1 7-1 心理阴影面积 思路 用一半的面积减去一个梯形和一个三角形面积即可。 代码 #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with
牛客周赛 Round 70
摘要:
小苯晨跑 思路 判全部是否相等即可。 代码 #include <bits/stdc++.h> using namespace std; using i64 = long long; void solve() { int a[5]{}; for(int i = 0;i < 4;i ++){ cin >
牛客周赛 Round 69
摘要:
构造C的歪 思路 取 \(|a-b|+\max(a,b)\) 即可构造第三项。 代码 #include <bits/stdc++.h> using namespace std; using i64 = long long; int main() { ios::sync_with_stdio(fals
CodeTON Round 9 (Div. 1 + Div. 2, Rated, Prizes!)(A~C2)
摘要:
A - Shohag Loves Mod 思路 假设构造差值是 \(x = 0,1,\dots ,n\) 这样的,那么只要让 \(a_i \equiv x \pmod{i}\) 即可,也就是 \(a_i = i+x\)。 代码 #include <bits/stdc++.h> using names
牛客小白月赛105
摘要:
牛客小白月赛105 lz的吃饭问题 思路 判断 \(a \times b\) 与 \(c \times d\) 的关系即可。 代码 #include <bits/stdc++.h> using i64 = long long; int main() { std::ios::sync_with_std
SMU Autumn 2024 Personal Round 2
摘要:
SMU Autumn 2024 Personal Round 2 A. Not Adjacent Matrix 思路 可以按照奇数列就向上移动一个元素,溢出的元素补到最后一行,这样构造后检查一下是否有相邻元素即可(事实上只有 \(n=1\) 才会无解)。 代码 #include <bits/stdc
2023 国际大学生程序设计竞赛亚洲区域赛(济南站)(SMU Autumn 2024 Team Round 2)
摘要:
2023 国际大学生程序设计竞赛亚洲区域赛(济南站)(SMU Autumn 2024 Team Round 2) I. Strange Sorting 思路 代码 #include <bits/stdc++.h> #define ll __int128 #define int long long #
第2课-枚举、排序、贪心
摘要:
前言 如果认为自己代码没问题,换行问题,边界问题等都处理了还是不行,可以试试交 C++(GCC9) 该类型,因为部分题目是 UVA 上的老题,可能不支持新版本的 C++。 如果提交UNKNOWN ERROR,应该是没绑定UVA账号,洛谷右上角个人设置里去填写注册一下即可。 除法 Division 思
中国大学生程序设计竞赛(秦皇岛)正式赛东北大学秦皇岛分校(SMU Autumn 2024 Team Round 1)
摘要:
中国大学生程序设计竞赛(秦皇岛)正式赛东北大学秦皇岛分校(SMU Autumn 2024 Team Round 1) Problem A. 贵校是构造王国吗 I 思路 官方题解很清晰明了。 代码 #include <bits/stdc++.h> using namespace std; #defin