题解列表

筛选

1043: [编程入门]三个数字的排序

摘要:解题思路:利用max,min,找出最大最小值,之后总和再减去最大最小值则为中间值注意事项:max,min,的三目运算参考代码:#include <stdio.h>int main(){ int a, ……

有点繁琐,不过有注释

摘要:参考代码:ISBN=input()x=ISBN.replace(&#39;-&#39;,&#39;&#39;) #把ISBN号的-去除X=[] #存储ISBN号尾不为X的ISBN数字a="" #存储I……

菲波那契数列(菜鸟解题)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    long long  a[100000];    int n;    scanf("%d",&n);  ……

菜鸟解:角谷猜想

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){   int n,a,b;   scanf("%d",&n);   while(n!=1){    if(n%2……

元素配对(两次选择排序)

摘要:解题思路:注意事项:注意数组越界问题,数组下标最好使用明确的数字参考代码:#include<stdio.h>#include<math.h>int *f1(int n,int a[10000]){ i……

菜鸟:不会算的三位数

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){    long long c=1;    int a,b,d;    sca……

1052: [编程入门]链表合并

摘要:解题思路:注意事项:参考代码:    #include<stdio.h>    #include<stdlib.h>    typedef struct student    {        int……

一种超简单的方法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int isprime(int j){    int a;    a=1;    for(int i=2;i<j;i++)    {  ……