题解列表

筛选

2种方法,轻松解决

摘要:解题思路:最小公倍数等于2数相乘除以最大公约数;也可以直接从较大的数开始,一个一个加,先到都能整除输入的数的值就是最小公倍数注意事项:参考代码://1#include<stdio.h>int main……

自定义函数处理素数

摘要:解题思路:注意事项:参考代码:#include <stdio.h>void main(){    int a, m = 0;    scanf("%d", &a);    for (int i = 2……

简单利润计算

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <stdlib.h>/* run this program using the console pauser or ……

字符串组的使用

摘要:解题思路:注意事项:参考代码:# include <stdio.h># include <string.h>int main (){    int n;    scanf ("%d",&n);    ……