[编程入门]数组插入处理——C语言 摘要:解题思路:从后往前比较,x比a[i]大,a[i]往后移,如果同时x比a[i-1]小,则x赋值给a[i]注意事项:参考代码:#include<stdio.h> int main() { …… 题解列表 2022年08月07日 0 点赞 0 评论 325 浏览 评分:0.0
字符串的输入输出处理(python) 摘要:解题思路:前两行正常输出,后面按要求输出,注意数值的一些限制注意事项:注意输出格式,要用两个“\n”参考代码:N = int(input())if 0 < N <= 100: for i in…… 题解列表 2022年08月07日 0 点赞 0 评论 281 浏览 评分:0.0
编写题解 1026: [编程入门]数字逆序输出——C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a[10]; for(int i=0;i<10;i++) …… 题解列表 2022年08月07日 0 点赞 0 评论 291 浏览 评分:0.0
编写题解 1004: [递归]母牛的故事(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int num[56];int main(){ for (int i = 1; i < …… 题解列表 2022年08月07日 0 点赞 0 评论 444 浏览 评分:0.0
[NOIP2001]装箱问题 摘要:解题思路: 二维数组递归,01背包问题注意事项: dp[i][j]为只用前i个箱子(包含第i个)在不超过j体积下的最大利用空间参考代码:import java.util.*;public class…… 题解列表 2022年08月07日 0 点赞 0 评论 454 浏览 评分:0.0
蛇形矩阵(python) 摘要:解题思路:找到合适的算法,定义函数进行计算注意事项:参考代码:def f(N): for i in range(1, N + 1): for j in range(i, N + 1…… 题解列表 2022年08月07日 0 点赞 0 评论 329 浏览 评分:0.0
1111111111111111111111111111111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; int t=0; wh…… 题解列表 2022年08月07日 0 点赞 0 评论 320 浏览 评分:0.0
11111111111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[3][4],i,j,max; int x,y; for(i=0;i<…… 题解列表 2022年08月07日 0 点赞 0 评论 381 浏览 评分:0.0
简短11111111111111111111111111111 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s,v; int t=0; …… 题解列表 2022年08月07日 0 点赞 0 评论 381 浏览 评分:0.0
关于三个数字比较建议 摘要:解题思路:通过比较a,b得最大值max1,再比较b,c得最大值max2;再比较max1与max2得出最终结果。注意事项:注意格式最好是能连续输出和输入,这样程序的使用价值更高。参考代码:#includ…… 题解列表 2022年08月07日 0 点赞 0 评论 448 浏览 评分:0.0