题解列表

筛选

鸡兔同笼 (C语言代码)

摘要:解题思路:注意事项:鸡兔同笼问题,可以看做是解一个二元一次方程的问题,因此要么无解,要么有唯一解。所以找到唯一解(如果存在)就可以break了。参考代码:#include<stdio.h> ……

统计字符数 (C语言代码)

摘要:解题思路:注意事项:定义了一个void Count(char [],int)函数用于统计各字符串中各个英文字母的个数,并找出最大值输出参考代码:#include<string.h> #include……

【密码】 (C语言代码)

摘要:解题思路:随意看看注意事项:参考代码:#include<stdio.h>#include<string.h>#include<ctype.h>int main(){ int M,p; scanf("%……

DNA (C语言代码)

摘要:解题思路:注意事项:大写X可AC, 小写x不能AC。参考代码://1115: DNA  #include <stdio.h> int main() { int a[16], b[16], ……

DNA (C语言代码)

摘要:解题思路:注意事项:  每一个不同的DNA结构结束后要输出进行一次换行。参考代码:#include <stdio.h>int main(){    int N,a,b;    int i,j,n,mo……