三角形-(动态规划法) 摘要:```java import java.util.Scanner; public class Main { public static void main(String[] args…… 题解列表 2024年10月09日 0 点赞 0 评论 341 浏览 评分:9.9
旧物有情 # 枚举法求素数 摘要:``` #include using namespace std; int main(){ int n; cin >> n; bool flag=true; …… 题解列表 2024年10月10日 3 点赞 0 评论 476 浏览 评分:9.9
旧物有情 # 枚举法求水仙花数 摘要:``` #include using namespace std; int main(){ //枚举所有三位数 for(int i=100; i…… 题解列表 2024年10月10日 0 点赞 0 评论 459 浏览 评分:9.9
旧物有情 # 遍历求二维数组转置 摘要:``` #include using namespace std; int main(){ int a[3][3]; for(int i=0; ia[i]…… 题解列表 2024年10月10日 1 点赞 0 评论 331 浏览 评分:9.9
旧物有情 # 模拟求最大公约数和最小公倍数 摘要:``` #include using namespace std; int main(){ int n,m; cin >> n >> m; …… 题解列表 2024年10月10日 3 点赞 0 评论 681 浏览 评分:9.9
旧物有情 # vector枚举法完数的判断 摘要:``` #include #include using namespace std; int main(){ //N的因子:可以整除N的数 //1 2 3 6 可以…… 题解列表 2024年10月10日 0 点赞 0 评论 366 浏览 评分:9.9
c语言方式解决 小九九 题目1671 摘要:解题思路:双重循环注意事项:打印算式的时候要注意空格的数量,以便对齐参考代码:#include<stdio.h>int main(){ int a,b,c;&nb…… 题解列表 2024年10月10日 0 点赞 0 评论 817 浏览 评分:9.9
[编程入门]有规律的数列求和 摘要:#[编程入门]有规律的数列求和 题目:有一分数序列: 2/1 3/2 5/3 8/5 13/8 21/13...... 求出这个数列的前N项之和,保留两位小数。 ## 解题思路 当我们将分子…… 题解列表 2024年10月11日 1 点赞 0 评论 675 浏览 评分:9.9
暴力解法 菲波那契数列2809 摘要:解题思路:注意事项:参考代码:#includeint main(){ int a,b=0,c=1,d,i=1; scanf("%d",&a); for(i;i<a;i++) {…… 题解列表 2024年10月11日 0 点赞 0 评论 594 浏览 评分:9.9
忽略大小写的字符串比较 摘要:#include <stdio.h>#include <string.h>#include <ctype.h>// 自定义忽略大小写的字符串比较函数int strcasecmp_custom(cons…… 题解列表 2024年10月11日 0 点赞 0 评论 506 浏览 评分:9.9