DNA (C++代码)简单容易理解 可AC 摘要:解题思路:按照题目的意思一步一步展开,主要分成三层,上层、中间的X以及下边部分注意事项:需要注意的是循环次数为两个以上的时候上边的图案是从第二层开始的参考代码:#include <iostream>…… 题解列表 2018年08月04日 3 点赞 0 评论 916 浏览 评分:0.0
P1002 (C语言代码) 摘要:解题思路: 用循环和数组即可注意事项:参考代码:#include <stdio.h>int main() { int n; scanf("%d", &n); int i, a[n],…… 题解列表 2018年08月04日 0 点赞 0 评论 828 浏览 评分:0.0
IP判断 C语言 mirage解题记录 摘要:解题思路:1.判断字符串中有无 非数字 且 非 . 2.以 . 为分割符分为四组字符串3.每组字符串转化为 int 判断大小参考代码:#include<stdio.h> #include<std…… 题解列表 2018年08月04日 17 点赞 2 评论 482 浏览 评分:0.0
弟弟的作业 (C语言代码)10行了解一下 摘要:解题思路:注意事项: atoi将字符串转换成一个整数并返回结果。 i = atoi( "512.035" ); i 的值为 512. i = atoi( '0&#…… 题解列表 2018年08月04日 3 点赞 2 评论 558 浏览 评分:7.3
逆序数 (C++代码)(树状数组 O(nlogn) ) 摘要:解题思路: 离散化 + 树状数组参考代码:#include<bits/stdc++.h> using namespace std; const int SIZE = 1024;…… 题解列表 2018年08月04日 0 点赞 0 评论 1030 浏览 评分:0.0
DNA C语言 mirage解题记录 摘要:解题思路:1.先弄一个二维基本结构,定义二维数组初始化全部空格,再把对应位置改为 X 。3.循环b次输出即可。注意事项:基本结构为一个 a列 * (a-1)行 的矩阵,循环完成最后一行单独输出。参考…… 题解列表 2018年08月03日 26 点赞 2 评论 424 浏览 评分:0.0
鸡兔同笼 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>#include<iostream>using namespace std;int main() { i…… 题解列表 2018年08月03日 0 点赞 0 评论 1011 浏览 评分:0.0
装包装箱问题 (C++代码) 摘要:解题思路:注意事项:参考代码:用到数学函数ceil求较大整值#include<stdio.h>#include<math.h>#include<iostream>using namespace std…… 题解列表 2018年08月03日 1 点赞 0 评论 852 浏览 评分:0.0
王牌花色 (C++代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<iostream>using namespace std;int n, t, m,…… 题解列表 2018年08月03日 0 点赞 0 评论 1402 浏览 评分:0.0
蛇行矩阵 C语言 mirage解题记录 动态数组 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> main() { int n,i,j,num,*row[100]={NULL}; …… 题解列表 2018年08月03日 15 点赞 0 评论 702 浏览 评分:0.0