C二级辅导-等差数列 (C语言代码) 摘要:解题思路:和=(首项+末项)×项数÷2 注意事项:当n=1时,该公式不适用参考代码:#include <stdio.h> #define first 2 #define walk_long …… 题解列表 2019年01月22日 1 点赞 0 评论 755 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.8 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>float fac(unsigned int n){ if(n==1) return 1; if(n==2) return 2; ret…… 题解列表 2019年01月22日 0 点赞 0 评论 976 浏览 评分:0.0
去掉双斜杠注释 (Java代码) 摘要:解题思路: 正则截取 //后面的 所有 替换为空 输出注意事项:本题注意输出格式。居然还要把换行去掉参考代码:import java.util.Scanner; public class M…… 题解列表 2019年01月22日 0 点赞 0 评论 1707 浏览 评分:6.0
蓝桥杯算法提高VIP-删除重复元素 (C++代码) 摘要:#include <bits/stdc++.h> using namespace std; int main() { char s[5000]; cin>>s; for(int…… 题解列表 2019年01月22日 0 点赞 0 评论 1236 浏览 评分:6.0
蓝桥杯历届试题-回文数字 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int n;fun(int m){int a,b,c,d,e,f; for(b=1;b<=9;b++) for(c=0;c<=9;c…… 题解列表 2019年01月22日 0 点赞 0 评论 925 浏览 评分:0.0
蓝桥杯算法训练VIP-寂寞的数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int isJmNum(int n) { for(int i=1;i<=n;++i) { // i%10; // …… 题解列表 2019年01月22日 0 点赞 0 评论 960 浏览 评分:0.0
C语言训练-亲密数 (C语言代码) 摘要:解题思路:求解3000以内一个数的因子之和等于另一个数(与前一个数不同)可以用函数方法来处理sumbd 注意事项:三个条件是 A的因子之和等于B;B的因子之和等于A; A不…… 题解列表 2019年01月22日 0 点赞 0 评论 735 浏览 评分:0.0
蓝桥杯算法训练VIP-集合运算 (C++代码) 摘要:#include <bits/stdc++.h> #include <stdio.h> using namespace std; int a[1005]; int b[1005]; int …… 题解列表 2019年01月22日 0 点赞 0 评论 1200 浏览 评分:9.9
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:最后的答案很大,int存不下的.注意事项:long long int在内存中占八个字节,范围是-922337203685775808~922337203685775807double:%lf…… 题解列表 2019年01月22日 1 点赞 0 评论 507 浏览 评分:0.0
junmu1165:【明明的随机数】 利用数组下标,超清新哦 摘要:解题思路: 1.利用数组下标的特点,超方便。 2.就是有时候数组要很大。。。。 3.充分体现了,代码短…… 题解列表 2019年01月22日 1 点赞 0 评论 1716 浏览 评分:0.0