引用上面博主的,感觉进步了 摘要: #include #include #include using namespace std; const int N =200; int f…… 题解列表 2023年06月18日 0 点赞 0 评论 482 浏览 评分:9.9
动态规划-货币系统 摘要: #include #include using namespace std; const int N =310; int f[N]; int …… 题解列表 2023年06月18日 0 点赞 0 评论 417 浏览 评分:9.9
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<cmath>int main(){ int num = 0; int tem…… 题解列表 2023年06月18日 0 点赞 0 评论 286 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n, i, j; scanf_s("%d", &n); for (i = 0; i < n; i++) …… 题解列表 2023年06月18日 0 点赞 0 评论 528 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[301]; fgets(str, size…… 题解列表 2023年06月18日 0 点赞 0 评论 380 浏览 评分:0.0
C语言解法,参考C++ 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char num[5000]; int i,j,a=0; scanf("%s…… 题解列表 2023年06月18日 0 点赞 0 评论 922 浏览 评分:8.3
非常简单,小学生解法 摘要:解题思路:用一个数组来计算每个字母(52个字母)重复的,先写一个子函数求出n的阶乘,也就是没有字母重复时的排列总数,再用此排列总数依次除以每个字母重复的次数,就能求出最终的排列总数了注意事项:代码里面…… 题解列表 2023年06月18日 0 点赞 0 评论 479 浏览 评分:6.0
数据结构-字符串插入 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i; int t=0; int j=0; c…… 题解列表 2023年06月19日 0 点赞 0 评论 489 浏览 评分:0.0
[编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double Sn=0,an=0,n,i,t,a=2.0,b=1.0;//a为分子,b为分母,an为单项和…… 题解列表 2023年06月19日 0 点赞 0 评论 283 浏览 评分:9.9
辗转相除法 摘要:解题思路:辗转相除法,最小公因数用数学表示为: gcd(a, b) = gcd(b, a mod b)。最大公倍数为两数的积除以最小公因数。注意事项:因为我这里gcd函数的第一个输入值设置为较小的值,…… 题解列表 2023年06月19日 0 点赞 0 评论 358 浏览 评分:0.0