WU-C语言程序设计教程(第三版)课后习题12.5 (C++代码) 摘要:解题思路:如果看完了我的代码 应该就明白了参考代码:#include<iostream> #include<sstream> #include<cstring> #include<cmath>…… 题解列表 2017年12月13日 4 点赞 0 评论 1574 浏览 评分:2.0
WU-川哥的吩咐 (C++代码) 摘要:这题要用字符串来写了额 但是处理起来比较麻烦 要处理好进位的问题 我的思路是先把进位算出来 再加到字符里面 为了防止数据溢出原有的位数 我还在两个加数的末尾加了个‘0’ 注意事项: …… 题解列表 2017年12月19日 6 点赞 0 评论 1593 浏览 评分:2.0
永远的丰碑 (C++代码) 摘要:#include<iostream> using namespace std; int main() { int n; while(cin>>n) { if(n==0) …… 题解列表 2017年11月28日 3 点赞 0 评论 1115 浏览 评分:2.0
C二级辅导-阶乘数列 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>double fun(double a)//计算某个数的阶乘{ int i; double sum=1; for(i=1;i<=a;i+…… 题解列表 2017年11月29日 0 点赞 0 评论 652 浏览 评分:2.0
纪念品分组 (C语言代码) 摘要:解题思路:用qsort函数对每件纪念品的价格进行降序排序,然后将第一个(即最大)与最后一个(即最小)一起和规定钱数比较。以测试样例为例,排序后为 90 90 80 70 60 50 30 20 20 …… 题解列表 2017年12月01日 1 点赞 0 评论 1122 浏览 评分:2.0
人见人爱A+B (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int a, b, c, d, e, f, i, n; scanf("%d", &n); for (i…… 题解列表 2017年12月01日 0 点赞 0 评论 1138 浏览 评分:2.0
素数回文 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ long i, j, k, l, a, b, m, flag, count, count1; int …… 题解列表 2017年12月01日 1 点赞 0 评论 1188 浏览 评分:2.0
母牛生小牛 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,a1,a2,a3,a4,year,i,t; scanf("%d",&n); a1=1; a2=0; …… 题解列表 2017年12月03日 1 点赞 0 评论 2043 浏览 评分:2.0
数字整除 (C语言代码) 摘要:解题思路:根据题目要求来写就行了(我写的具体要求可能和题目的有点偏差)注意事项:参考代码:#include <stdio.h>void main(){ int n; //输入的数 i…… 题解列表 2017年12月03日 0 点赞 2 评论 598 浏览 评分:2.0
WU-Sine之舞 (C++代码)(蓝桥杯历年真题解析 一天一题)(唯一题解!!!) 摘要:这题做了很久 用的是递归的方法 递归大法好 写起来思路比较清晰 但也比较麻烦 废话不多说 上代码:#include<iostream> #include<cstring> #include…… 题解列表 2017年12月05日 4 点赞 5 评论 1014 浏览 评分:2.0