不使用数组,只用循环 摘要:**解题思路** 不使用数组,首先使用一个循环遍历1到n的数。 然后自定义一个函数来判断每一个数是不是完数,假如是,就返回1.假如不是,就返回0。 在主函数的循环里,对函数的返回值进行判定,判定…… 题解列表 2024年07月29日 0 点赞 0 评论 280 浏览 评分:9.9
这个作弊也可以哟 摘要:解题思路:无注意事项:无参考代码:#include<iostream>using namespace std;int main(){ cout<<"Glmre"; return 0;}…… 题解列表 2024年07月29日 8 点赞 0 评论 1062 浏览 评分:9.9
----------------------------------在校门口挖吖挖+++++++++++++++++++++ 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h> /* 用 1 表示树, 用 0 表示是被挖走,即坑。 */ int main() …… 题解列表 2024年07月29日 0 点赞 0 评论 214 浏览 评分:9.9
----------------杨辉三角------------woc--------杨辉三角-----------woc---------卧槽 摘要:解题思路:无注意事项:无参考代码:#include <stdio.h> int main() { int n; while (~scanf("%d", &n)){ int nu…… 题解列表 2024年07月29日 0 点赞 0 评论 437 浏览 评分:9.9
简单易懂的链表合并 摘要:```c #include #include typedef struct node { int id, studemtid; struct node* next; }link; …… 题解列表 2024年07月30日 2 点赞 0 评论 384 浏览 评分:9.9
~~~~~~~~~~~~~~~可爱的津津乐道+++++++++++ 摘要:解题思路://通过数组来存放数据,然后再拿来比较注意事项://如何判断那一天最不高兴参考代码:#include<stdio.h> int main() { int a[8]={[0]=0…… 题解列表 2024年07月30日 0 点赞 0 评论 312 浏览 评分:9.9
8行:帅破天际 摘要:解题思路:注意事项:参考代码:wlb=[]for i in range(5): row=input() wlb.append(row)n,m=map(int,input().split()…… 题解列表 2024年07月30日 2 点赞 0 评论 697 浏览 评分:9.9
++++++++++++++++++++ 0基础学IT就来黑喵程序员之向量点积的计算 +++++++++++++++++++++ 摘要:解题思路:注意事项://x轴与y轴的方向选取参考代码:#include<stdio.h> int main() { int n; scanf("%d", &n); i…… 题解列表 2024年07月30日 0 点赞 0 评论 425 浏览 评分:9.9
数据结构-有序线性表的有序合并(C语言,只用30行) 摘要:```c #include #include int link(int a[],int n); int link(int a[],int n){//该函数是用来将数组数据存入的 …… 题解列表 2024年07月31日 2 点赞 0 评论 682 浏览 评分:9.9
1673: 数据结构-集合union(结构体数组解决) 摘要:本题需要看清楚题目给的输入和输出。 题目的输入为 **5 1 5 2 6 3 3 1 7 9 1 3 2 2 7 4 2 5 1 4 4 1 2 4 5** 输出为 **1 5 2 …… 题解列表 2024年07月31日 0 点赞 0 评论 577 浏览 评分:9.9