C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:使用2个for循环来解决阶乘,主要还是数据格式long long int 的使用注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #inc…… 题解列表 2018年01月01日 0 点赞 0 评论 749 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题5.7 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<stdlib.h>#include<math.h>#include<ctype.h…… 题解列表 2018年01月01日 0 点赞 0 评论 855 浏览 评分:0.0
简单的a+b (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ …… 题解列表 2017年12月31日 0 点赞 0 评论 741 浏览 评分:0.0
数字整除 (C语言描述——12行搞定) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ for( char s[102]; scanf("%s",s)==1 && !(s[0]=='0…… 题解列表 2017年12月31日 1 点赞 2 评论 1403 浏览 评分:7.3
密码截获 (C++代码) 摘要:解题思路:思路:仔细读题发现,起始就是找最长对称串。暴力求出所有子串,判断是不是对称串即可,然后找最大长度。其中用到了string的一些性质。比如赋值,直接s1=s2即可。或赋值某串的一部分 stri…… 题解列表 2017年12月31日 1 点赞 1 评论 1746 浏览 评分:9.3
字符排列问题 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <string.h> int cmp(const void *a,c…… 题解列表 2017年12月31日 2 点赞 0 评论 1770 浏览 评分:0.0
内码对称 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <stdlib.h> #include <math.h> #include <string.h> int …… 题解列表 2017年12月31日 0 点赞 0 评论 1918 浏览 评分:8.0
作业调度方案 (C++代码) 摘要:解题思路:注意事项:参考代码:这道题...我认为是一道不能算“简单”的模拟首先,出题者不仅在考察代码实现能力,更在考验你的语文水平( 唉...... )闲话不多说了,注释都在代码里了...cpp..#…… 题解列表 2017年12月31日 0 点赞 2 评论 1016 浏览 评分:9.9
【金明的预算方案】 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;//一维数组不超过 3000 0000//!!!聪明把最多2件物品的重要度、价格都保存在主件上…… 题解列表 2017年12月31日 1 点赞 0 评论 1248 浏览 评分:4.7
蓝桥杯基础练习VIP-FJ的字符串 (C语言代码) 摘要:#include <stdio.h> #include <string.h> char str[1000000]; char tmp[500000] = "ABACABA"; const …… 题解列表 2017年12月31日 0 点赞 0 评论 1281 浏览 评分:0.0