题解列表

筛选

蓝桥杯2018年第九届真题-递增三元组(Java代码)

摘要:解题思路:    遍历数组B,找出数组A中比当前数字小的数字个数,找出数组C中比当前数字大的数字个数,两个数字相乘得到数组B中当前数组能组成的三元组个数。    具体实现参考代码注释。注意事项:参考代……

6行代码解决

摘要:解题思路:注意事项:参考代码:import sysmas=list(input().split())mas1=[abs(int(i))for i in mas]x=mas1.index(min(mas……

选择排序小白进阶系列

摘要:解题思路:首先定义一维数组其次确定需要设置为整型的量本题涉及for循环数值比较注意事项:参考代码:#include<stdio.h>int main(){ int i,j,m,a[10]; for(i……

数组插入处理

摘要:解题思路:先把要加的数放在数组的最后面,再通过比较大小寻找合适放置的位置注意事项:参考代码:#include<stdio.h>int main(){ int a[10]; int i; for(i=0……

瞅瞅撒,自定义函数

摘要:解题思路:两个函数都用递归注意事项:无参考代码:#include <stdio.h>#include <stdlib.h>#include <math.h>double fact(int n){   ……