畅通工程 (C++代码) 摘要:解题思路: 并查集#include<bits/stdc++.h> using namespace std; const int MAXN = 1e5 + 7; st…… 题解列表 2018年11月01日 0 点赞 0 评论 870 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题3.7 (C语言代码) 摘要:解题思路:用最少的代码完成题目注意事项:注意C是大写参考代码:#include<stdio.h>int main(void){ char c1='C',c2='h'…… 题解列表 2018年11月01日 1 点赞 0 评论 503 浏览 评分:0.0
蓝桥杯算法提高VIP-最长单词 (C++代码) 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <algorithm> #includ…… 题解列表 2018年11月01日 0 点赞 0 评论 728 浏览 评分:0.0
蓝桥杯2013年第四届真题-买不到的数目 (C语言代码) 摘要:解题思路:数学推导一下注意事项:参考代码:#include <cstdio> int main() { int a, b; scanf("%d%d", &a, &b); printf(…… 题解列表 2018年11月01日 0 点赞 0 评论 720 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.5 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; double i; double Sa=0,Sb=0,Sc=0,sum; scanf("%…… 题解列表 2018年11月01日 0 点赞 0 评论 809 浏览 评分:0.0
蓝桥杯算法提高VIP-和最大子序列 (C++代码) 摘要:解题思路:注意事项:数组大小开足,默写模板...参考代码:#define _CRT_SECURE_NO_WARNINGS #include <iostream> #include <algor…… 题解列表 2018年11月01日 0 点赞 0 评论 550 浏览 评分:0.0
The 3n + 1 problem (C语言代码) 摘要:解题思路:这里选择的是几组数据一起输入,再一起输出。参考代码:#include <stdio.h> int main() { double m[100],n[100],a,b; …… 题解列表 2018年11月01日 2 点赞 1 评论 441 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C++语言代码)简洁易懂 摘要:解题思路:注意事项:注意我处理正负1交替的过程; 也注意自己的代码风格。参考代码:#include <cstdio> #include <cmath> #include <iostream> …… 题解列表 2018年11月01日 0 点赞 0 评论 848 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.4 (C语言代码) 摘要:解题思路:1!=1*1; 2!=1*2; 3!=1*2*3; 4!=1*2*3*4; 因此可以发现一个规律:如果设i=1,1!=i*1,2!=(1!)*(i++),即后一个数等于前一个数乘以(i++)…… 题解列表 2018年11月01日 0 点赞 0 评论 443 浏览 评分:0.0