题解列表

筛选

IP判断 (C语言代码)

摘要:解题思路:按指定规则去凑数,然后再判断ABCD四个数是否符合条件【0,255】,若全部符合则输出Y,否则输出N注意事项:参考代码:#include <stdio.h>int main(){ char ……

Tom数 (C语言代码)

摘要:解题思路:n与10进行取余,把取余的结果和Tom进行累加,然后n/10,接着重复上一次的操作,直至n=0为止。注意事项:参考代码:#include <stdio.h>int main(){ long ……

整除的尾数 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){int a=0,b=0,n,m=0,i=0,num=0,c=0;while(scanf("%d %d",&n,&……

川哥的吩咐 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void f(char *a,char *b,int *aa,int *bb,int *ans)……

众数问题 (C语言代码)

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

钟神赛车 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>void f(int *a,int begin,int end){ if(begin >= end)  return;  int l ……