题解列表

筛选

求组合数 (C语言代码)

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

筛排处理 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int i, j, x, n, min, count; int num[100]; while (sc……

神奇的fans (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int i, j, l, n, m, d, max, count; scanf("%d", &n); ……

统计立方数 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){    long j,n,count=0;    scanf("%ld",&n);    while(n……

WU-字符串对比 (C++代码)

摘要:这题用C++的sting流字符串来做比较起来比较方便 其中用到了小写字母转换成大写字母的函数 toupper()#include<iostream> #include<cstring> #inc……

Manchester-Tom数

摘要:解题思路:输入一个整数;求出每一位相加的和;注意事项:输入的整数小于2^32-1:不能时int型(2^31 -1) ,要比它长,用unsigned int等比它长的;不要把问题想的太复杂,这题就是考察……

Dinner (C语言代码)

摘要:解题思路:用一个数组存入所有箱子的名字,再用另一个数组存单独的名字,判断是不是餐具即可。注意事项:1.输入时数字后的的空格可能会影响后面的字符读入2.各种初始化参考代码:#include<stdio.……