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