摘要: 代码 #include<iostream> #include<vector> #include<cstdio> using namespace std; const int maxn = 100010; vector<int> sequence; int maxL, minR, cnt, k, n, 阅读全文 »
posted @ 2023-04-21 17:35 天黑星更亮 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 题目 Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. According to 阅读全文 »
posted @ 2023-04-21 17:31 天黑星更亮 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 题目 When a flight arrives, the passengers will go to the Arrivals area to pick up their baggage from a luggage conveyor belt (行李传送带). Now assume that w 阅读全文 »
posted @ 2023-04-21 16:37 天黑星更亮 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 代码 #include<iostream> #include<map> #include<algorithm> #include<vector> using namespace std; map<vector<int>,int>mp; vector<int>temp; int main(){ int 阅读全文 »
posted @ 2023-04-21 11:33 天黑星更亮 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 题目 哲哲是一位硬核游戏玩家。最近一款名叫《达诺达诺》的新游戏刚刚上市,哲哲自然要快速攻略游戏,守护硬核游戏玩家的一切! 为简化模型,我们不妨假设游戏有 N 个剧情点,通过游戏里不同的操作或选择可以从某个剧情点去往另外一个剧情点。此外,游戏还设置了一些存档,在某个剧情点可以将玩家的游戏进度保存在一个 阅读全文 »
posted @ 2023-04-21 11:32 天黑星更亮 阅读(30) 评论(0) 推荐(0) 编辑
摘要: 代码 #include<iostream> #include<vector> #include<algorithm> using namespace std; const int N = 10010; vector<int>v[N]; bool isroot[N]; vector<int> path 阅读全文 »
posted @ 2023-04-21 11:30 天黑星更亮 阅读(31) 评论(0) 推荐(0) 编辑
摘要: 代码 #include <bits/stdc++.h> using namespace std; map<int, int> A; int n, minn = INT_MAX, maxn = INT_MIN;//头文件中自定义的宏 int main() { cin >> n; for (int i 阅读全文 »
posted @ 2023-04-21 11:27 天黑星更亮 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 代码 #include<iostream> #include<string> #include<algorithm> using namespace std; const int N = 100; string s[N]; int main(){ int n,m; cin >> n >> m; in 阅读全文 »
posted @ 2023-04-21 11:26 天黑星更亮 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 题目 彩虹瓶的制作过程(并不)是这样的:先把一大批空瓶铺放在装填场地上,然后按照一定的顺序将每种颜色的小球均匀撒到这批瓶子里。 假设彩虹瓶里要按顺序装 N 种颜色的小球(不妨将顺序就编号为 1 到 N)。现在工厂里有每种颜色的小球各一箱,工人需要一箱一箱地将小球从工厂里搬到装填场地。如果搬来的这箱小 阅读全文 »
posted @ 2023-04-21 11:06 天黑星更亮 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 代码 #include<iostream> #include<algorithm> #include<vector> using namespace std; const int N = 100010; vector<int>v[N]; vector<int>path; int ans = 0, i 阅读全文 »
posted @ 2023-04-21 10:32 天黑星更亮 阅读(24) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示