简单的C实现,整除的尾数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m, n; while (scanf("%d%d", &m, &n) && n && m) { int…… 题解列表 2021年12月06日 0 点赞 0 评论 461 浏览 评分:0.0
编写题解 1027: [编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int p(int x,int y); int q(int m,int n); int a,b; s…… 题解列表 2021年12月07日 0 点赞 0 评论 459 浏览 评分:0.0
蛇形矩阵 用dp函数来解答 摘要:解题思路:注意事项:参考代码:n=nt(input())dp=[[0]*n for i in rage(n)]dp[0][0]=1for i in range(1,n): dp[i][0]=dp…… 题解列表 2021年12月07日 0 点赞 0 评论 528 浏览 评分:0.0
不同单词个数统-小白题解-C语言代码 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> char strArr[101]; char temp[101][101]; i…… 题解列表 2021年12月07日 0 点赞 0 评论 632 浏览 评分:0.0
数学思路来解这一道题的 摘要:解题思路:注意事项:参考代码:import mathwhile True: w, h = map(int, input().split()) if w==0 or h==0: …… 题解列表 2021年12月07日 0 点赞 0 评论 525 浏览 评分:0.0
输出中间的数 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d%d%d",&a,&b,&c); printf("%d\n",b); …… 题解列表 2021年12月07日 0 点赞 0 评论 509 浏览 评分:0.0
多输入输出练习2 摘要:解题思路:先用宏定义定义一个p,然后定义变量n,计数器k,将k放到while()循环中判断读入半径的个数。注意事项:不要用float 去定义s,a,不然容易出现精度问题,最好用double定义变量。参…… 题解列表 2021年12月07日 0 点赞 0 评论 453 浏览 评分:0.0
1000内完数判断 摘要:解题思路:我又来毁灭世界了,答案错误注意事项:这个不是正确答案,仅供参考参考代码:int main(){ static int a[10]; int n,i,sum,t,j,k,b; scanf("%…… 题解列表 2021年12月07日 0 点赞 0 评论 528 浏览 评分:0.0
最简单的思路, 摘要:解题思路:挨个计算,拆分注意事项:参考代码:#include <stdio.h>int main() { int i,j,k,n; for( n=100;n<1000;n++)//所有数字因为水仙花是…… 题解列表 2021年12月07日 0 点赞 0 评论 379 浏览 评分:0.0
调用函数,自定义函数之数字分离。 摘要:解题思路:先定义一维数组,gets()为输入,puts()为输出。在用strlen计算字符串的长度好进行for循环(进行多少从循环)。在用if语句进行添加空格。注意事项:类型为char,strlen为…… 题解列表 2021年12月07日 0 点赞 0 评论 463 浏览 评分:0.0