不使用数组,只用循环 摘要:**解题思路** 不使用数组,首先使用一个循环遍历1到n的数。 然后自定义一个函数来判断每一个数是不是完数,假如是,就返回1.假如不是,就返回0。 在主函数的循环里,对函数的返回值进行判定,判定…… 题解列表 2024年07月29日 0 点赞 0 评论 229 浏览 评分:9.9
[编程入门]第一个HelloWorld程序(c++) 摘要:解题思路:直接输出"**************************\nHello World!\n**************************"就好了注意事项:"\n"是换行符号参考代码…… 题解列表 2024年07月29日 1 点赞 0 评论 430 浏览 评分:9.9
[竞赛入门]简单的a+b(C++) 摘要:解题思路:定义a,b,输入各值,输出a+b就可以了注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; …… 题解列表 2024年07月29日 0 点赞 0 评论 290 浏览 评分:0.0
使用冒泡排序法 摘要:解题思路:使用冒泡排序法 注意事项:参考代码:#include<stdio.h> //冒泡排序法函数//函数可以copy一下回头还可以用 void bubbleSort(int arr[],…… 题解列表 2024年07月29日 1 点赞 0 评论 727 浏览 评分:10.0
这个作弊也可以哟 摘要:解题思路:无注意事项:无参考代码:#include<iostream>using namespace std;int main(){ cout<<"Glmre"; return 0;}…… 题解列表 2024年07月29日 8 点赞 0 评论 920 浏览 评分:9.9
太经典了,链表的经典操作 链表数据求和操作 摘要:解题思路:还是前面讲的链表的经典操作注意事项:链表的使用,注意删除节点参考代码:#includeusing namespace std; typedef struct ListPlural{ …… 题解列表 2024年07月29日 0 点赞 0 评论 181 浏览 评分:0.0
递归和迭代求解斐波那契数列 摘要:递归:#include <stdio.h> int Input() { int N; scanf("%d", &N); return N; } int Fib…… 题解列表 2024年07月29日 0 点赞 0 评论 244 浏览 评分:0.0
----------------------------------在校门口挖吖挖+++++++++++++++++++++ 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h> /* 用 1 表示树, 用 0 表示是被挖走,即坑。 */ int main() …… 题解列表 2024年07月29日 0 点赞 0 评论 138 浏览 评分:9.9
----------------杨辉三角------------woc--------杨辉三角-----------woc---------卧槽 摘要:解题思路:无注意事项:无参考代码:#include <stdio.h> int main() { int n; while (~scanf("%d", &n)){ int nu…… 题解列表 2024年07月29日 0 点赞 0 评论 377 浏览 评分:9.9
set集合的使用(插入与遍历) 摘要:#include<bits/stdc++.h> using namespace std; int main() { int n,m; while(cin>>n>>m) { ve…… 题解列表 2024年07月29日 0 点赞 0 评论 182 浏览 评分:0.0