题解列表
报数问题之不用链表只用数组
摘要:解题思路:注释都有解释//报数问题
#pragma warning(disable:4996)
#include <stdio.h>
#define SIZE 81
int no[SIZE];……
注意i-j 避免数字相同
摘要:import java.util.Scanner;
public class 数的划分 {
/**
* @param args
*/
public static vo……
题解 1044: [编程入门]三个字符串的排序
摘要:参考代码:#include<stdio.h>#include<stdlib.h>#include<string.h>//strcmp(char *a,char *b);比较字符串长度,大>1,小<-1……
C题解*****************************************
摘要:#include <stdio.h>#include <stdlib.h>#include <math.h>int main(){ int n,i,j,c=0,flag,max,maxa; ……
编写题解 1869: 鸡兔同笼-穷举法
摘要:###### #解题思路:使用穷举法来解题
1、n为总数量,m为总腿数。那么设鸡为i只,兔为k只可得出公式
2*i+4*k=m ;
i+k=n;
鸡和兔都从0只开始,当鸡为0只,那么兔……