题解列表
编写题解 1010: [编程入门]利润计算
摘要:解题思路:将奖金和利润的关系分为6种情况:①:利润l<100000时,奖金提成10%;②:利润100000<I≤200000时,低于等于100000元部分按10%提成,高于100000元的部分,可提成……
[编程入门]求和训练 利用递归函数(C语言)
摘要:解题思路:思路都是一样的,循环求解。一般求解就是利用for或者利用递归。故本题考虑了递归。注意事项:注意数据超限。参考代码:#include <stdio.h>// 计算从 1 到 a 的整数long……
java数组、排序、多组数据
摘要:参考代码:import java.util.Arrays;
import java.util.Scanner;
public class Main
{
public static vo……
编写题解 1049: [编程入门]结构体之时间设计
摘要:解题思路:注意事项:参考代码:#include <stdio.h>// 定义日期结构体struct Date { int year; int month; int day;};// ……
编写题解 1023: [编程入门]选择排序
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fun(int a[10]){ int temp; for(int i=0;i<9;i++){ fo……
写题解 1011: [编程入门]最大公约数与最小公倍数
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int gcd(int a,int b){ int temp; while(b!=0){ int temp =……
编写题解 1025: [编程入门]数组插入处理
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void fun(int a[9],int n){ int i,j; for(i=0;i<9;i++){ if……