(动态规划) 数字三角形 (加油淦!!!) 摘要:解题思路:很容易想到的是递归,遍历所有的路径,然后找出最大值,但是,可惜的是超时从倒数第二行倒着看,会发现一个规律举例:15 68 9 107 4 3 2先看倒数第二行8 = max(7,4) + 8…… 题解列表 2021年10月12日 0 点赞 0 评论 597 浏览 评分:8.7
编写题解 1953: 三位数分解 6行结束战斗 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a,b,c; scanf("%d",&n); a=n/100; b=n%100/10; c=n%10…… 题解列表 2021年10月13日 0 点赞 0 评论 972 浏览 评分:8.7
c++语言1069: 二级C语言-寻找矩阵最值,用到了二维数组 摘要:解题思路:最大值采用“打擂台”的算法,双重循环找最大值注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main()…… 题解列表 2021年10月27日 0 点赞 0 评论 951 浏览 评分:8.7
【C不C吧】我好短! 摘要:解题思路:注意事项:求救大佬,我这为啥子会输出超限?参考代码:#include<stdio.h>int main(){ char c; while ((c = getchar()) != '\…… 题解列表 2021年10月29日 0 点赞 1 评论 992 浏览 评分:8.7
奇数偶数分开输出(c语言代码) 摘要:#include <stdio.h> int main() { int a[15],b[10],c[10],n1=-1,n2=-1,i,j,t; for(i=0;i<10;i++) …… 题解列表 2021年11月04日 0 点赞 0 评论 1392 浏览 评分:8.7
编程入门成绩评定 摘要:解题思路:简单的运用if来解决注意事项:仔细一些注意符号,英文是否都参考代码#include<stdio.h> /*头文件*/void main() …… 题解列表 2021年11月07日 0 点赞 0 评论 806 浏览 评分:8.7
c++ map入门笔记 摘要:解题思路:map其中一个是键的类型第二个是值得类型first或second用法,这是因为map中的每个元素都对应一组键值对中的第一个成员称为first,第二个成员称为second.注意事项:如果是in…… 题解列表 2021年11月30日 0 点赞 0 评论 1005 浏览 评分:8.7
这题比较基础 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; for(a=10;a>=10&&a<=1000;a++) { if(a%2==0&…… 题解列表 2021年12月20日 0 点赞 0 评论 714 浏览 评分:8.7
C++代码for循环实现数字逆序输出 摘要:解题思路:for循环逆序输出数字for(int i =9;i>=0;i--)注意事项:暂时不明参考代码:#include<iostream>using namespace std;int main()…… 题解列表 2021年12月27日 0 点赞 0 评论 1216 浏览 评分:8.7
编写题解 1011: [编程入门]最大公约数与最小公倍数 VS2019 摘要:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,c,d=1,a1,b1;cin>>a>>b;a1=a;b1=b;i…… 题解列表 2021年12月31日 0 点赞 0 评论 800 浏览 评分:8.7