2015: 自动晾衣机(19行!!!) 摘要: import java.util.*; public class 自动洗衣机 { public static void main(String[] args) { Scanner sc…… 题解列表 2023年03月03日 0 点赞 0 评论 658 浏览 评分:9.9
3046基础解法(Python) 摘要:解题思路:贪心算法注意事项:理解题意后注意限制要求,可优化参考代码:def cor(str_) : global cnt lst = list(str_) flag = 0 # 标…… 题解列表 2023年03月03日 0 点赞 1 评论 504 浏览 评分:9.9
三个字符串排序 摘要:解题思路:使用strcpy()函数直接解决,strcpy()是直接覆盖拷贝的意思,例如:strcpy(a,b)是指将b的值覆盖到a上,是字符串注意事项:参考代码:#include<stdio.h>#i…… 题解列表 2023年03月03日 0 点赞 1 评论 419 浏览 评分:9.9
区间求和(前缀和) 摘要:解题思路:前缀和 ·前缀和算法(Prefix Sum)是一种常用的数组处理技巧,用于快速计算数组中某个区间内的元素和。 ·前缀和算法的核心思想是先预处理出数组的前缀和,即将数组中每个位置的值设为该…… 题解列表 2023年03月03日 0 点赞 0 评论 1221 浏览 评分:9.9
优质题解 LikeWater - 1677: 数据结构-静态链表(又是一个怎么也找不到错误的题!!!ヾ(≧へ≦)〃) 摘要:***————天空是蓝色的,海也是蓝色的,但其实海是反射了天空的颜色才变的蓝,我的答案是正确的,大佬的答案也是正确的,但其实是我copy的大佬的代码,ctrl+x!*** **———————————…… 题解列表 2023年03月03日 1 点赞 9 评论 925 浏览 评分:9.9
3127: 联络员(liaison) 摘要:```cpp #include #include using namespace std; struct node { int from,to,dis; friend b…… 题解列表 2023年03月03日 0 点赞 0 评论 576 浏览 评分:9.9
3126: 繁忙的都市(city) 摘要:```cpp #include #include #include using namespace std; #define N 301 struct Edge { int t…… 题解列表 2023年03月03日 0 点赞 0 评论 600 浏览 评分:9.9
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 评论 540 浏览 评分:9.9
3080: 信息学奥赛一本通T1335-连通块 摘要:```cpp #include using namespace std; const int N=1001; int n,m,g[N][N],f[N*N]; int find(int x) …… 题解列表 2023年03月04日 0 点赞 0 评论 720 浏览 评分:9.9
python 链表节点删除 列表解法 摘要:n,m=map(int,input().split())X1=[]X2=[]for i in range(n): a,b=map(int,input().split()) X1.appen…… 题解列表 2023年03月04日 0 点赞 0 评论 508 浏览 评分:9.9