2913: 整数去重(超简单) 摘要:解题思路:列表注意事项:给个五星好评吧!参考代码:n=int(input())#输入na=[]#新建空列表x=list(map(int,input().split()))#输入列表for i in r…… 题解列表 2024年03月24日 0 点赞 0 评论 553 浏览 评分:9.7
[编程入门]宏定义练习之三角形面积(C语言)题解 摘要:解题思路:注意事项:不要将带参的宏作为参数传给另一个宏!!! 如:#define area(S(a,b,c),a,b,c) sqrt(S(a,b,c)*(S(a,b,c)-a)*(S(a,b,c)…… 题解列表 2024年07月30日 2 点赞 0 评论 709 浏览 评分:9.7
递归算法..................... 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int index=0,circle[100000],m[1000000];void factorial(int a,int j){ …… 题解列表 2024年07月31日 17 点赞 0 评论 2949 浏览 评分:9.7
C语言程序设计教程(第三版)课后习题11.1 (C语言代码) 如果你看不懂这里的其他题解 点击我 摘要:题目分析 本题主要是训练结构体的创建 声明用法代码#include<stdio.h> leapyear(int a)//判断是否为闰年 { int b; if((a%4==0…… 题解列表 2017年06月13日 19 点赞 8 评论 2831 浏览 评分:9.8
不需要数组和指针的做法!!! 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ char c; while((c=getchar())!='\n'&&c!=-1)…… 题解列表 2017年07月25日 5 点赞 6 评论 1511 浏览 评分:9.8
C语言训练-委派任务* (C语言代码)..................竟然是第一个 摘要:解题思路:记0为不去,1为去,6个for就是全部情况列举,2*2*2*2*2*2,1)A和B两人中至少去一人; 2)A和D不能一起去; 3)A、E和F三人中要派两人去; 4)B和C都去或都不去; 5)…… 题解列表 2017年08月09日 9 点赞 8 评论 2602 浏览 评分:9.8
C二级辅导-公约公倍 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,m,temp,x,y,a; scanf("%d%d",&m,&n); if(m<n…… 题解列表 2017年08月12日 1 点赞 3 评论 2689 浏览 评分:9.8
C语言程序设计教程(第三版)课后习题8.9 (C语言代码) 用函数传参的方法 摘要:解题思路:注意事项:输入字符串用gets()传参要将指针传进函数参考代码:#include<stdio.h>#include <string.h>#include <stdlib.h>void jis…… 题解列表 2017年08月18日 16 点赞 2 评论 4702 浏览 评分:9.8
回文数字 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c,n,flag=1; scanf("%d",&n); for(a=1;a<10…… 题解列表 2017年10月16日 20 点赞 12 评论 3121 浏览 评分:9.8
C语言程序设计教程(第三版)课后习题10.7 (C语言代码) 摘要:#include <stdio.h> #define LEN 100 void Copy(char a[], char b[], int n, int m); int main(void) {…… 题解列表 2017年12月14日 90 点赞 11 评论 4992 浏览 评分:9.8