[编程入门]最大公约数与最小公倍数(C语言题解) 摘要:解题思路:很多人使用辗转相除法来获得GCD和LCM,但在中学大家更多的应该是使用老师讲的短除法,所以这个代码采用了短除法的思路。参考代码:#include<stdio.h> int main() …… 题解列表 2022年11月13日 0 点赞 0 评论 721 浏览 评分:0.0
题解 2803: 整数的个数(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,k,i,j=0,y=0,z=0; scanf("%d",&k); for(i=1;i<=k;i++)…… 题解列表 2022年11月14日 0 点赞 0 评论 834 浏览 评分:8.7
杨辉三角, 三种方法: 组合数 || 递归 || 迭代,都很简单 #includelonglongFun(intn,intm)//组合数,注意大组合数{if(n 题解列表 2022年11月14日 0 点赞 0 评论 1299 浏览 评分:9.9
2755: 类型转换 解题思路:注意事项:参考代码:#includeintmain(){printf("DC\n");return0;} 题解列表 2022年11月14日 0 点赞 0 评论 1892 浏览 评分:6.0
2757: 浮点数向零舍入(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ float a; int b; scanf("%f",&a); b=a; printf("%d\n",b); …… 题解列表 2022年11月14日 0 点赞 1 评论 1975 浏览 评分:9.9
题解1096:Minesweeper #1096:Minesweeper##知识点###知识点1:无限循环输入,知道输入两个0的时候结束我这里使用的方法是,用`times`变量进行计数,使用`for`循环。次循环之后`times`变量自增。每次循环开始时输入`n``m`,如果输入两个0,则直接`return`跳出`main()`。 题解列表 2022年11月14日 0 点赞 0 评论 561 浏览 评分:9.9
编写题解 1395: 倒数第二 Python 摘要:解题思路:sort函数注意事项:很简单好吧,不需要注意参考代码:C=int(input())while C!=0: n=int(input()) if n>=2 and n<=10: …… 题解列表 2022年11月14日 0 点赞 9 评论 520 浏览 评分:8.4
用for循环解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main(void){ int a, b, sum=0; scanf("%d",&a…… 题解列表 2022年11月14日 0 点赞 0 评论 637 浏览 评分:9.9
题解 1051: [编程入门]结构体之成绩统计2 1050基础上修改 #include//typedefstructStudent{charnum[16];charname[32];intcj1;intcj2;intcj3;}student[100];intN;voidinput(){inti;ints1=0, 题解列表 2022年11月14日 0 点赞 0 评论 517 浏览 评分:0.0
笨小猴(C语言) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char a[100]; int i,j;; int w; int b[200]={0}…… 题解列表 2022年11月14日 0 点赞 0 评论 779 浏览 评分:9.9