编写题解 1018: [编程入门]有规律的数列求和 摘要:解题思路:先将分母的值保留,然后将分子的值作为下一个数的分母,然后将分子加上分母作为下一个数的分子。注意事项:观察数列,其实不用搞得那么复杂参考代码:#include<stdio.h>int main…… 题解列表 2021年09月21日 0 点赞 0 评论 645 浏览 评分:0.0
c语言解决问题 摘要:```c // 3*bottle->1 #include int main() { int m; while((scanf("%d",&m))!=0) { if(…… 题解列表 2021年09月21日 0 点赞 0 评论 399 浏览 评分:0.0
萌新:一个简单的完全背包问题 摘要:解题思路:注意事项:完全背包问题的状态转移方差:s[j]=max(s[j-w]+v,s[j])具体的max()函数的定义不能一概而论,要具体问题,具体思考参考代码:#include <iostream…… 题解列表 2021年09月21日 0 点赞 0 评论 201 浏览 评分:0.0
1043:三个数字排序题解 摘要:解题思路:运用选择排序注意事项:交换的三行代码:t=a;a=b;b=t;参考代码:#include<stdio.h>int main(){ int a,b,c,t; scanf("%d%d…… 题解列表 2021年09月21日 0 点赞 0 评论 281 浏览 评分:9.9
射击游戏c++题解 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef int I;#define X(A,B) (A[B[0]][B[1]][B[2…… 题解列表 2021年09月21日 0 点赞 0 评论 954 浏览 评分:8.4
。。。。。。。。。。。。。。。。。。。。。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a[100],j,i,h=0,m=0,s=0; scanf("%d",&n); for(i=0;i<…… 题解列表 2021年09月21日 0 点赞 0 评论 207 浏览 评分:0.0
1128: C语言训练-排序问题<1> 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #define N 4 void bubblesort(int a[],int n);…… 题解列表 2021年09月21日 0 点赞 0 评论 396 浏览 评分:0.0
Dotcpp 编译器 与 VScode 编译器下的不同结果 摘要:解题思路: 字符串本身数组也没多大差别,就一个 '\0' 先输入字符串的个数,清除缓冲区,通过 for 循环输出数组,输出从第几位开始输出注意事项: VScode 的…… 题解列表 2021年09月21日 0 点赞 1 评论 373 浏览 评分:9.9
1096: Minesweeper 通俗易懂简单C++ 摘要:**解题思路**: 寻找地雷,在地雷周围一圈的数字上+1. ```cpp #include //万能头文件 using namespace std; int k = 0;//用于记录次数 v…… 题解列表 2021年09月20日 0 点赞 0 评论 405 浏览 评分:9.9
[编程入门]1010利润计算 一流程序员靠数学,二流靠算法,三流靠逻辑 摘要:解题思路: 1、数组a[6]表示6个利润区间值的下限,则可用 I-a[t]来计算出此利润区间的利润。数组b[6]表示6个区间的利率,数组n[5]表示5个完整区间的利润值。 I表示…… 题解列表 2021年09月20日 0 点赞 3 评论 324 浏览 评分:6.0