一目了然- 亲和数用while、for 摘要:解题思路:注意事项:参考代码:#include<iostream>usingnamespacestd;intmain(){ int&nb…… 题解列表 2025年03月12日 0 点赞 0 评论 157 浏览 评分:0.0
考虑质数与非质数两种情况即可 摘要:只能切下质数长度的木段,且1和0直接判断先手的人输,不妨直接设置一个数组a[100010]来表示结果,1.输入n,若n为质数,a[n]=1;2.若n不是质数,我们就需要考虑比n小的质数,如果有…… 题解列表 2025年03月12日 3 点赞 0 评论 555 浏览 评分:0.0
1051: [编程入门]结构体之成绩统计2 摘要:```c#include struct student{ char id[100]; char name[100]; int a; int b; int c;}; …… 题解列表 2025年03月12日 0 点赞 0 评论 565 浏览 评分:0.0
刚学STL的小白 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;map<char,int> mp;int a,b = 100…… 题解列表 2025年03月12日 0 点赞 0 评论 320 浏览 评分:0.0
信息学奥赛一本通T1499-最短路计数 堆优化+dijkstra 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"usingnamespacestd;#definell&nb…… 题解列表 2025年03月12日 1 点赞 0 评论 476 浏览 评分:0.0
sort练习---python 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split())l=list(map(int,input().split())) #要把列表中的数设为Int型,才能适应sort(…… 题解列表 2025年03月12日 0 点赞 0 评论 176 浏览 评分:0.0
c++求后序遍历 摘要:解题思路:先序第一位肯定是根节点,在中序中找到根节点位置后可以推出左边孩子梳理与右边孩子数量,递归后左边孩子变成根再推此根的左边孩子........这就很容易推出中序递归左孩子范围肯定是inorder…… 题解列表 2025年03月13日 0 点赞 0 评论 310 浏览 评分:0.0
c++扩展二叉树 摘要:解题思路:毋庸置疑做过后序遍历的肯定会做这道题(开个玩笑:>),但这道题没什么好说的,根据给定的s[i]判断是否空节点,空就返回nullptr,不是就添加节点并递归左右孩子```cpp#inc…… 题解列表 2025年03月13日 0 点赞 0 评论 239 浏览 评分:0.0
条件判断写法 摘要:x=int(input())if x%3==0 : print(3,end=' ')if x%5==0 : print(5,end=…… 题解列表 2025年03月13日 0 点赞 0 评论 266 浏览 评分:0.0
蛇形矩阵(C语言题解) 摘要:解题思路:不使用数组注意事项:参考代码:#include<stdio.h>int main(){ int i,j,k,N,sum; scanf("%d",&N)…… 题解列表 2025年03月13日 1 点赞 0 评论 494 浏览 评分:0.0