换硬币 (C++代码) 摘要:解题思路:注意事项:参考代码:简单点#include<iostream>using namespace std;int main(){ int n, a[10] = { 1,2,3,5,8,13,21…… 题解列表 2018年08月03日 0 点赞 0 评论 1447 浏览 评分:0.0
三位数反转 (C++代码) 摘要:解题思路:注意事项:参考代码:简单点#include<iostream>using namespace std;int main(){ int n; while (cin >> n) cout <<…… 题解列表 2018年08月03日 0 点赞 0 评论 763 浏览 评分:0.0
蛇行矩阵 C语言 mirage解题记录 动态数组 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> main() { int n,i,j,num,*row[100]={NULL}; …… 题解列表 2018年08月03日 15 点赞 0 评论 867 浏览 评分:0.0
王牌花色 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<iostream>using namespace std;int n, t, m,…… 题解列表 2018年08月03日 0 点赞 0 评论 1569 浏览 评分:0.0
装包装箱问题 (C++代码) 摘要:解题思路:注意事项:参考代码:用到数学函数ceil求较大整值#include<stdio.h>#include<math.h>#include<iostream>using namespace std…… 题解列表 2018年08月03日 1 点赞 0 评论 900 浏览 评分:0.0
鸡兔同笼 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<iostream>using namespace std;int main() { i…… 题解列表 2018年08月03日 0 点赞 0 评论 1099 浏览 评分:0.0
DNA C语言 mirage解题记录 摘要:解题思路:1.先弄一个二维基本结构,定义二维数组初始化全部空格,再把对应位置改为 X 。3.循环b次输出即可。注意事项:基本结构为一个 a列 * (a-1)行 的矩阵,循环完成最后一行单独输出。参考…… 题解列表 2018年08月03日 26 点赞 2 评论 460 浏览 评分:0.0
逆序数 (C++代码)(树状数组 O(nlogn) ) 摘要:解题思路: 离散化 + 树状数组参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 1024; …… 题解列表 2018年08月04日 0 点赞 0 评论 1233 浏览 评分:0.0
IP判断 C语言 mirage解题记录 摘要:解题思路:1.判断字符串中有无 非数字 且 非 . 2.以 . 为分割符分为四组字符串3.每组字符串转化为 int 判断大小参考代码:#include<stdio.h> #include<std…… 题解列表 2018年08月04日 17 点赞 2 评论 510 浏览 评分:0.0
P1002 (C语言代码) 摘要:解题思路: 用循环和数组即可注意事项:参考代码:#include <stdio.h>int main() { int n; scanf("%d", &n); int i, a[n],…… 题解列表 2018年08月04日 0 点赞 0 评论 885 浏览 评分:0.0