题解列表

筛选

数据结构单链表的使用

摘要:解题思路:注意事项:参考代码:#include "stdio.h"#include<stdlib.h>typedef int Elemtype;typedef struct LNode //结构定义{……

DNA-一种题解

摘要:参考代码:public void dna() {     Scanner sc = new Scanner(System.in);     int n = sc.nextInt();     f……

编写题解 1979: 求平均工资

摘要:解题思路:编辑数组先求和再求平均值注意事项:参考代码:#include <stdio.h>int main(){ int n,i,j,b=0,c;  scanf("%d",&n); int a[n];……

P1000 3行结束

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

二级C语言-分段函数

摘要:解题思路:通过分内容讨论进行定值注意事项:参考代码:#include<stdio.h>int main(){ double a; scanf("%lf",&a); if(a<1) printf("%.……

二级C语言-阶乘数列(Java代码)

摘要:解题思路:注意事项:       注意科学计数法:%.2e  其中2表示两位小数       存超大数字可以用 BigDecimal参考代码:import java.math.BigDecimal;i……