字符串问题,C语言,原地逆序 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> #define SWAP(a, b)((a)^=(b),(b)^=(a),(a)^=…… 题解列表 2021年04月07日 0 点赞 0 评论 561 浏览 评分:7.3
[编程入门]自定义函数之整数处理 摘要:参考代码:def fun_1(ls): # 输入10个数 ls = list(map(int, input().split())) return lsdef fun_2(ls): # …… 题解列表 2021年04月07日 0 点赞 0 评论 264 浏览 评分:0.0
蓝桥杯2018年第九届真题-递增三元组(Java代码) 摘要:解题思路: 遍历数组B,找出数组A中比当前数字小的数字个数,找出数组C中比当前数字大的数字个数,两个数字相乘得到数组B中当前数组能组成的三元组个数。 具体实现参考代码注释。注意事项:参考代…… 题解列表 2021年04月07日 0 点赞 0 评论 691 浏览 评分:9.9
6行代码解决 摘要:解题思路:注意事项:参考代码:import sysmas=list(input().split())mas1=[abs(int(i))for i in mas]x=mas1.index(min(mas…… 题解列表 2021年04月07日 0 点赞 0 评论 364 浏览 评分:7.0
[编程入门]三个字符串的排序 摘要:参考代码:ls = []for i in range(3): ls.append(input())ls.sort()for i in ls: print(i)…… 题解列表 2021年04月07日 0 点赞 0 评论 215 浏览 评分:0.0
合理运用数组,对min进行初始化 循坏得到最小值 摘要:#include<stdio.h> #include<string.h> #include<math.h> int main() { int m,n; int f[1000]; i…… 题解列表 2021年04月07日 0 点赞 0 评论 195 浏览 评分:0.0
选择排序小白进阶系列 摘要:解题思路:首先定义一维数组其次确定需要设置为整型的量本题涉及for循环数值比较注意事项:参考代码:#include<stdio.h>int main(){ int i,j,m,a[10]; for(i…… 题解列表 2021年04月07日 0 点赞 0 评论 186 浏览 评分:0.0
数组插入处理 摘要:解题思路:先把要加的数放在数组的最后面,再通过比较大小寻找合适放置的位置注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int i; for(i=0…… 题解列表 2021年04月07日 0 点赞 0 评论 191 浏览 评分:0.0
瞅瞅撒,自定义函数 摘要:解题思路:两个函数都用递归注意事项:无参考代码:#include <stdio.h>#include <stdlib.h>#include <math.h>double fact(int n){ …… 题解列表 2021年04月07日 0 点赞 0 评论 354 浏览 评分:9.9
文科生的悲哀(使用递归发现规律) 摘要:解题思路:由递归发现规律...注意事项:单单用递归是会超时的!!!参考代码:#include <iostream>using namespace std;int sum = 0;int N;void …… 题解列表 2021年04月07日 0 点赞 0 评论 241 浏览 评分:0.0