1051: [编程入门]结构体之成绩统计2 摘要:```c#include struct student{ char id[100]; char name[100]; int a; int b; int c;}; …… 题解列表 2025年03月12日 0 点赞 0 评论 778 浏览 评分:0.0
刚学STL的小白 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;map<char,int> mp;int a,b = 100…… 题解列表 2025年03月12日 0 点赞 0 评论 368 浏览 评分:0.0
信息学奥赛一本通T1499-最短路计数 堆优化+dijkstra 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb…… 题解列表 2025年03月12日 1 点赞 0 评论 573 浏览 评分:0.0
sort练习---python 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())l=list(map(int,input().split())) #要把列表中的数设为Int型,才能适应sort(…… 题解列表 2025年03月12日 0 点赞 0 评论 250 浏览 评分:0.0
c++求后序遍历 摘要:解题思路:先序第一位肯定是根节点,在中序中找到根节点位置后可以推出左边孩子梳理与右边孩子数量,递归后左边孩子变成根再推此根的左边孩子........这就很容易推出中序递归左孩子范围肯定是inorder…… 题解列表 2025年03月13日 0 点赞 0 评论 361 浏览 评分:0.0
c++扩展二叉树 摘要:解题思路:毋庸置疑做过后序遍历的肯定会做这道题(开个玩笑:>),但这道题没什么好说的,根据给定的s[i]判断是否空节点,空就返回nullptr,不是就添加节点并递归左右孩子```cpp#inc…… 题解列表 2025年03月13日 0 点赞 0 评论 354 浏览 评分:0.0
条件判断写法 摘要:x=int(input())if x%3==0 : print(3,end=' ')if x%5==0 : print(5,end=…… 题解列表 2025年03月13日 0 点赞 0 评论 362 浏览 评分:0.0
蛇形矩阵(C语言题解) 摘要:解题思路:不使用数组注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,N,sum; scanf("%d",&N)…… 题解列表 2025年03月13日 1 点赞 0 评论 620 浏览 评分:0.0
数组输出(思路简单) 摘要:解题思路:注意事项:参考代码:# 读取三行输入,每行4个整数,组成3x4的二维列表li1 = list(map(int, input().split()))li2 = list(map(int, in…… 题解列表 2025年03月13日 0 点赞 0 评论 493 浏览 评分:0.0
2761: Hello, World!的大小 摘要:解题思路:stringLength(str)= 13注意事项:字符串最后有个\0,所以加起来是14参考代码:2761: Hello, World!的大小#include<stdio.…… 题解列表 2025年03月13日 0 点赞 0 评论 515 浏览 评分:0.0