摘要:// 牛站.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> using namespace std; /* https://www.acwing.com/problem/content/347/ 给定一张由 T 条边构成的无向图
阅读全文
摘要:// 排序.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // /* * https://www.acwing.com/problem/content/345/ 给定 n 个变量和 m 个不等式。其中 n 小于等于 26,变量分别用前 n 的大写英文字母表示。 不等式之间
阅读全文
摘要:Chapter 1 入门 Section 1.1 介绍 Section 1.2 提交解决方案,任务类型,特殊问题 AcWing 1339. 你的旅途由此开始753人打卡 AcWing 1340. 贪婪的送礼者581人打卡 AcWing 1341. 十三号星期五521人打卡 AcWing 1342.
阅读全文
摘要:// 牛的旅行.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <cmath> #include <algorithm> #include <cstring> using namespace std; /* h
阅读全文
摘要:// 观光之旅.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // /* * https://www.acwing.com/problem/content/description/346/ * * 给定一张无向图,求图中一个至少包含 3 个点的环,环上的节点不重复,并且环
阅读全文
摘要:// 数字游戏2.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <vector> #include <cstring> using namespace std; /* https://loj.ac/p/101
阅读全文
摘要:// 数字游戏.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <vector> using namespace std; /* https://loj.ac/p/10164 http://ybt.ssoier
阅读全文
摘要:记忆化搜索 // 1589:不要 62.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // /* * http://ybt.ssoier.cn:8088/problem_show.php?pid=1589 * https://www.acwing.com/problem/
阅读全文
摘要:// 173. 矩阵距离.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <queue> #include <vector> using namespace std; /* https://www.acwing
阅读全文
摘要:// 170 加成序列.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // /* https://www.acwing.com/problem/content/172/ 满足如下条件的序列 X(序列中元素被标号为 1、2、3…m)被称为“加成序列”: X[1]=1 X[m
阅读全文
摘要:// 1100. 抓住那头牛.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <queue> #include <map> using namespace std; /* https://www.acwing.
阅读全文
摘要:自己的写法 // Amount of Degrees 度的数量.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // /* * https://loj.ac/p/10163 * http://ybt.ssoier.cn:8088/problem_show.php?pid=1
阅读全文
摘要:// 1575:【例 1】二叉苹果树.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // /* http://ybt.ssoier.cn:8088/problem_show.php?pid=1575 https://loj.ac/p/10153 有一棵二叉苹果树,如果数字
阅读全文
摘要:// 327. 玉米田.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> using namespace std; /* https://www.acwing.com/problem/content/329/ 农夫约翰的土地由 M
阅读全文
摘要:// 小国王.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> #include <vector> using namespace std; /* https://loj.ac/p/10170 http://ybt.ssoier.
阅读全文
摘要:// 1301:大盗阿福.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> using namespace std; /* http://ybt.ssoier.cn:8088/problem_show.php?pid=1301 【
阅读全文
摘要:// 524. 愤怒的小鸟.cpp : 此文件包含 "main" 函数。程序执行将在此处开始并结束。 // #include <iostream> using namespace std; /* https://www.acwing.com/problem/content/526/ Kiana 最近
阅读全文