题解列表

筛选

二级C语言-求偶数和(简单)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,t; t=0; scanf("%d",&n); for (i=1;i<=n;i++) {    ……

因子分解(Java代码)

摘要:解题思路:注意事项:参考代码:import java.util.ArrayList; import java.util.List; import java.util.Scanner; pub……

萌新也能轻松AC之链表合并

摘要:#不用字典,仅用列表操作完成 ```python N,M = map(int,input().split()) numbers = [] 学号列表1 numbers1 = [] 排序后的学号列……

引入第三个一维字符数组

摘要:解题思路:                引入第三个一维字符数组,把两个字符数组的值依次赋值给第三个数组。参考代码:#include<stdio.h> #include<string.h> voi……

三目运算求解

摘要:解题思路:这三个数直接用一个语句判断,不需要if,代码简洁。注意事项:参考代码:#include <stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a……

宏定义与指针区别

摘要:解题思路:注意事项:参考代码:指针是访问 而宏定义是机械替换#include<stdio.h>#define swap(a,b){int temp;temp=a;a=b;b=temp}int main……

宏定义三角简化

摘要:解题思路:宏定义函数求解注意事项:注意不要超出界限参考代码:#include<stdio.h>#include<math.h>#define a_1(a,b,c) (a+b+c)/2#define s……

递归标准题解

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void f(int i,int x);int s[100]={0}; int s1[100]={0}; //s1[-1]=0; int……