题解列表

筛选

this is a test article

摘要:test content text :%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%……

母牛的故事 (C语言代码)

摘要:解题思路:        斐波拉契数列,f(n)=f(n-1)+f(n-3)注意事项:参考代码:#include<stdio.h> int cow[61]={0,1,2,3}; void mo……

开心的金明 (C语言代码)

摘要:解题思路:其实可以用类似深度优先搜索,每个节点就是一件物品,两条路通向下一个节点,即买与不买。参考代码:#include<stdio.h>int money[26];//每件物品的价格和价值分别存放在……

发工资咯 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int fun(int* a,int* b, int n){    int i,j,t=0;    fo……

IP判断 (Java代码) 正则表达试

摘要:解题思路:这题用正则表达 比较简单注意事项: 需要题目中的 条件定义[0-255],分为5种情况  1.  一位数的  \\d  因为 开头一位也可以是0.  2.  两位数的 [1-9]\\d  这……

密码截获 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int huiwen_judge(int m,int k,char *s){    int l=m;    int l1=k;    f……

P1001 (C语言代码)

摘要:解题思路:  获取最大值 - 获取最小值 ,直接判断注意事项: 注意排好序 参考代码:#include<stdio.h>int isprime(int k)                      ……

DNA (C语言代码)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int z,i[15],j[15]; int a,x,y,m,n,c; scanf("%d",&z); for(……