二维数组的转置及C代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,j,a[3][3],count=0; for(i=0;i<3;i++) { for…… 题解列表 2024年07月27日 1 点赞 0 评论 672 浏览 评分:9.9
无敌妈妈存钱计划!!!!!!!!!!!!!!!! 摘要:解题思路:数组存储接收变量注意事项:参考代码:/* residue[0]=300-budget; residue[1]= 循环//residue[0]+300-budget[1];// …… 题解列表 2024年07月28日 0 点赞 0 评论 774 浏览 评分:9.9
不使用数组,只用循环 **解题思路**不使用数组,首先使用一个循环遍历1到n的数。然后自定义一个函数来判断每一个数是不是完数,假如是,就返回1.假如不是,就返回0。在主函数的循环里,对函数的返回值进行判定,判定是完数,就再使用一个循环,将其因子输出。具体看代码注释```c#includeintfun(intn){intsu 题解列表 2024年07月29日 0 点赞 0 评论 535 浏览 评分:9.9
----------------------------------在校门口挖吖挖+++++++++++++++++++++ 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h> /* 用 1 表示树, 用 0 表示是被挖走,即坑。 */ int main() …… 题解列表 2024年07月29日 0 点赞 0 评论 490 浏览 评分:9.9
----------------杨辉三角------------woc--------杨辉三角-----------woc---------卧槽 摘要:解题思路:无注意事项:无参考代码:#include <stdio.h> int main() { int n; while (~scanf("%d", &n)){ int nu…… 题解列表 2024年07月29日 0 点赞 0 评论 701 浏览 评分:9.9
简单易懂的链表合并 ```c#include#includetypedefstructnode{intid,studemtid;structnode*next;}link;link*creat(intn){//创建链表,使用尾插法,参数可以使用题目的要求的链表元素数量intid, 题解列表 2024年07月30日 2 点赞 0 评论 636 浏览 评分:9.9
~~~~~~~~~~~~~~~可爱的津津乐道+++++++++++ 摘要:解题思路://通过数组来存放数据,然后再拿来比较注意事项://如何判断那一天最不高兴参考代码:#include<stdio.h> int main() { int a[8]={[0]=0…… 题解列表 2024年07月30日 0 点赞 0 评论 509 浏览 评分:9.9
++++++++++++++++++++ 0基础学IT就来黑喵程序员之向量点积的计算 +++++++++++++++++++++ 摘要:解题思路:注意事项://x轴与y轴的方向选取参考代码:#include<stdio.h> int main() { int n; scanf("%d", &n); i…… 题解列表 2024年07月30日 0 点赞 0 评论 676 浏览 评分:9.9
1673: 数据结构-集合union(结构体数组解决) 本题需要看清楚题目给的输入和输出。题目的输入为**5152633179132274251441245**输出为**15263179152631526371526379****32732327****251412452514251425142514**可以很明显的看出这个是三次输入, 题解列表 2024年07月31日 0 点赞 0 评论 846 浏览 评分:9.9
————派大星的极致运算————————之整数去重复&m 摘要:解题思路://1号数组存放读入数据 //2号数组存放不重复数组 //通过循环遍历进行比较看是否有重复注意事项://无参考代码:#includeint main() { int n; …… 题解列表 2024年07月31日 0 点赞 0 评论 623 浏览 评分:9.9