momoc:题解1513:蓝桥杯算法提高VIP-大数加法 (C语言代码)附题解 摘要:解题思路:1.用字符串保持输入的数 2.对输入的字符串进行逆序并转换成数组保持到整数数组 3.对数组相加对相加后的数进行取模,并把进位的数保…… 题解列表 2018年08月02日 6 点赞 0 评论 1653 浏览 评分:0.0
蛇行矩阵 (C++代码) 摘要:每一行的规律很好看出来每行的第n个数为前n-1个数之和,很容易求出该数字为(n*n+n)/2;继续分析第m行的第n个数(n*n+n)/2+1-m;代码如下#include<iostream>using…… 题解列表 2018年08月02日 0 点赞 0 评论 853 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题6.1 (C语言代码) 摘要:解题思路:注意事项:最大公约数*最小公倍数=取的两个数的乘积参考代码:#include<stdio.h>int main(){ int m,n,a,b,max,c,d; scanf("%d %d",&…… 题解列表 2018年08月02日 0 点赞 0 评论 1405 浏览 评分:0.0
蓝桥杯2014年第五届真题-拼接平方数 (C++代码) 摘要:#include"bits/stdc++.h" using namespace std; int f(int n) { int i = 1; while (n != 0) { …… 题解列表 2018年08月02日 0 点赞 0 评论 772 浏览 评分:0.0
C语言考试练习题_一元二次方程 (C++代码) 摘要:解题思路:1、判断deta的值;deta>0,x1=-b+sqrt(deta)/2*a;x2=-b-sqrt(deta)/2*a;deta=0,x1、x2=-b/2*a;此题不需考虑复数解得情况,若考…… 题解列表 2018年08月03日 0 点赞 0 评论 1104 浏览 评分:0.0
字符逆序 (C语言)mirage解题记录 摘要:解题思路:两个字符串数组,字符串1 输入,逆向赋值给 字符串2注意事项:1.数组下标-1;参考代码:#include<stdio.h> #include<string.h> #define N 1…… 题解列表 2018年08月03日 17 点赞 1 评论 565 浏览 评分:0.0
换硬币 (C++代码) 摘要:解题思路:注意事项:参考代码:简单点#include<iostream>using namespace std;int main(){ int n, a[10] = { 1,2,3,5,8,13,21…… 题解列表 2018年08月03日 0 点赞 0 评论 1190 浏览 评分:0.0
三位数反转 (C++代码) 摘要:解题思路:注意事项:参考代码:简单点#include<iostream>using namespace std;int main(){ int n; while (cin >> n) cout <<…… 题解列表 2018年08月03日 0 点赞 0 评论 691 浏览 评分:0.0
蛇行矩阵 C语言 mirage解题记录 动态数组 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> main() { int n,i,j,num,*row[100]={NULL}; …… 题解列表 2018年08月03日 15 点赞 0 评论 703 浏览 评分:0.0
王牌花色 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<iostream>using namespace std;int n, t, m,…… 题解列表 2018年08月03日 0 点赞 0 评论 1403 浏览 评分:0.0