数据结构-集合union 队列超简单 嘿 来看看吧 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量m, n, x和数组a,其中…… 题解列表 2024年12月03日 0 点赞 0 评论 294 浏览 评分:0.0
用max算法比较同时返回较大的值 摘要:解题思路:面对两个值,用max算法比较同时返回较大的值。注意事项:清零时,清除的是积累的连续count,意味着断开重新比较。参考代码:#include<iostream> #include<algo…… 题解列表 2024年12月03日 0 点赞 0 评论 268 浏览 评分:0.0
数据结构-有序线性表的有序合并 向量轻松搞定 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义两个整数向量a1和a2,用于存储…… 题解列表 2024年12月03日 0 点赞 0 评论 403 浏览 评分:0.0
c++小白,暴力ac 摘要:解题思路:注意事项:参考代码://#include<iostream>//using namespace std;//int a[1000], b[1000], c[1000];//int main(…… 题解列表 2024年12月03日 0 点赞 0 评论 244 浏览 评分:0.0
不懂可评论 摘要:解题思路:注意事项:参考代码:class Time: def __init__(self): self.__h=0 #__表示私有,防止外部访问和修改 …… 题解列表 2024年12月03日 0 点赞 0 评论 386 浏览 评分:9.9
喔喔喔喔喔喔喔喔喔 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double f1=1,f2=2,sum=0,n,f3,temp; scanf("%lf",&n); sum+=…… 题解列表 2024年12月03日 1 点赞 0 评论 764 浏览 评分:0.0
简易,易懂 摘要:解题思路:注意事项:参考代码:int main (){ int n; float sum=0; scanf ("%d",&n); float a[n]; for (int…… 题解列表 2024年12月03日 2 点赞 0 评论 665 浏览 评分:0.0
2925 ******自己复习用********** 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>#include <stdbool.h>int main() { int n = 0; …… 题解列表 2024年12月03日 0 点赞 0 评论 299 浏览 评分:9.9
C语言训练-水仙花数 摘要:解题思路:将所有三位数遍历,分别判断是否为水仙花数,是则输出。注意事项:参考代码:#include<stdio.h>#include<math.h>int main(void){ int m; …… 题解列表 2024年12月03日 0 点赞 0 评论 417 浏览 评分:0.0
布尔类型变量 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include <stdbool.h>int main (){ bool b; char c; printf ("%…… 题解列表 2024年12月03日 0 点赞 0 评论 691 浏览 评分:0.0