摘要:
代码 #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
天黑星更亮
阅读(17)
评论(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
天黑星更亮
阅读(25)
评论(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
天黑星更亮
阅读(34)
评论(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
天黑星更亮
阅读(18)
评论(0)
推荐(0)
摘要:
题目 哲哲是一位硬核游戏玩家。最近一款名叫《达诺达诺》的新游戏刚刚上市,哲哲自然要快速攻略游戏,守护硬核游戏玩家的一切! 为简化模型,我们不妨假设游戏有 N 个剧情点,通过游戏里不同的操作或选择可以从某个剧情点去往另外一个剧情点。此外,游戏还设置了一些存档,在某个剧情点可以将玩家的游戏进度保存在一个 阅读全文
posted @ 2023-04-21 11:32
天黑星更亮
阅读(45)
评论(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
天黑星更亮
阅读(43)
评论(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
天黑星更亮
阅读(94)
评论(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
天黑星更亮
阅读(38)
评论(0)
推荐(0)
摘要:
题目 彩虹瓶的制作过程(并不)是这样的:先把一大批空瓶铺放在装填场地上,然后按照一定的顺序将每种颜色的小球均匀撒到这批瓶子里。 假设彩虹瓶里要按顺序装 N 种颜色的小球(不妨将顺序就编号为 1 到 N)。现在工厂里有每种颜色的小球各一箱,工人需要一箱一箱地将小球从工厂里搬到装填场地。如果搬来的这箱小 阅读全文
posted @ 2023-04-21 11:06
天黑星更亮
阅读(85)
评论(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
天黑星更亮
阅读(49)
评论(0)
推荐(0)
摘要:
代码 #include <stdio.h> #include <string.h> //处理的方式和我考虑的一样,但是有一点更为巧妙一点 //它将空格的位置固定在了倒数第三个空格上,这确实更符合常理也更容易输出 int main(){ int n,i,j; int len,flagA,flagB; 阅读全文
posted @ 2023-04-21 10:14
天黑星更亮
阅读(61)
评论(0)
推荐(0)
摘要:
题目 “666”是一种网络用语,大概是表示某人很厉害、我们很佩服的意思。最近又衍生出另一个数字“9”,意思是“6翻了”,实在太厉害的意思。如果你以为这就是厉害的最高境界,那就错啦 —— 目前的最高境界是数字“27”,因为这是 3 个 “9”! 本题就请你编写程序,将那些过时的、只会用一连串“6666 阅读全文
posted @ 2023-04-21 10:11
天黑星更亮
阅读(70)
评论(0)
推荐(0)

浙公网安备 33010602011771号