3125: 局域网(net) 摘要:```cpp #include #include using namespace std; const int N=101,inf=0x3f3f3f3f; int n,m,mapp[N][N…… 题解列表 2023年03月03日 0 点赞 0 评论 420 浏览 评分:9.9
3126: 繁忙的都市(city) 摘要:```cpp #include #include #include using namespace std; #define N 301 struct Edge { int t…… 题解列表 2023年03月03日 0 点赞 0 评论 435 浏览 评分:9.9
因为其它题不会,所以只会做简单题的臭猜币一个 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y; scanf("%d%d",&x,&y); if(x>y) { …… 题解列表 2023年03月03日 0 点赞 1 评论 372 浏览 评分:0.0
做过水仙花数的凑鼠鼠一个 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int f(int n){ int sum=0,t=n; while(t) { sum+=(t%10)*…… 题解列表 2023年03月03日 0 点赞 0 评论 306 浏览 评分:0.0
3127: 联络员(liaison) 摘要:```cpp #include #include using namespace std; struct node { int from,to,dis; friend b…… 题解列表 2023年03月03日 0 点赞 0 评论 436 浏览 评分:9.9
鼠鼠是凑飞舞,打撒 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x[100]={0,},k=0; for(int i=0;i<=4;i++) { …… 题解列表 2023年03月03日 0 点赞 0 评论 266 浏览 评分:0.0
优质题解 LikeWater - 1677: 数据结构-静态链表(又是一个怎么也找不到错误的题!!!ヾ(≧へ≦)〃) 摘要:***————天空是蓝色的,海也是蓝色的,但其实海是反射了天空的颜色才变的蓝,我的答案是正确的,大佬的答案也是正确的,但其实是我copy的大佬的代码,ctrl+x!*** **———————————…… 题解列表 2023年03月03日 1 点赞 9 评论 756 浏览 评分:9.9
区间求和(前缀和) 摘要:解题思路:前缀和 ·前缀和算法(Prefix Sum)是一种常用的数组处理技巧,用于快速计算数组中某个区间内的元素和。 ·前缀和算法的核心思想是先预处理出数组的前缀和,即将数组中每个位置的值设为该…… 题解列表 2023年03月03日 0 点赞 0 评论 929 浏览 评分:9.9
三个字符串排序 摘要:解题思路:使用strcpy()函数直接解决,strcpy()是直接覆盖拷贝的意思,例如:strcpy(a,b)是指将b的值覆盖到a上,是字符串注意事项:参考代码:#include<stdio.h>#i…… 题解列表 2023年03月03日 0 点赞 1 评论 286 浏览 评分:9.9
3046基础解法(Python) 摘要:解题思路:贪心算法注意事项:理解题意后注意限制要求,可优化参考代码:def cor(str_) : global cnt lst = list(str_) flag = 0 # 标…… 题解列表 2023年03月03日 0 点赞 1 评论 371 浏览 评分:9.9