题解列表

筛选

C语言训练-排序问题<1> (C++代码)

摘要:解题思路:插入排序是一个对少量元素进行排序的有效算法注意事项:参考代码:#include<iostream>using namespace std;void insertSort(int[],int ……
优质题解

大神的探险 之 满载而归 (C语言代码)

摘要:解题思路:        蜗牛爬井。。        由于最后肯定需要在白天爬上去,所以不妨先将井高减去白天一天能爬的高度,然后计数一天,        接下来再继续分析,       &nbs

汽水瓶 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){     int n,a[10],i=0;     int k,m;     while(~scanf("%d",……

奇偶的秘密 (Java代码)

摘要:Scanner sc=new Scanner(System.in);     int n=sc.nextInt();     int arr[]=new int[n];     for(i……