Mark11:数组模拟链表 摘要:注意事项: 这题和前面的一道报3退圈的,很像。这里采用的数组模拟方法,是之前一位dalao的。参考代码:#include<stdio.h> #include<s…… 题解列表 2018年10月04日 1 点赞 0 评论 1581 浏览 评分:0.0
【密码】 (C语言代码)(代码不长) 摘要:解题思路:第一个条件:长度:8-16.第二个:4组字符其中三个。设置 a,b,c,d 分别表示每组字符,f 表示长度,e字符我是为了好看(else e++;可有可无).为了方便计算,只要符合条件的,就…… 题解列表 2018年10月03日 0 点赞 0 评论 1110 浏览 评分:8.4
优质题解 【回文数(二)】 (C++代码) 摘要:解题思路用一个数组保存所要算的数的每一位,如10进制87->逆序存储 a 数组={7,8}; 8 7 +7 8 ———— 15 15因为我们是逆序存储的,所以数组从0开始相加,就…… 题解列表 2018年10月03日 2 点赞 0 评论 1903 浏览 评分:9.8
Mark11:简洁的代码——通过求模来给数列分段 摘要:_ueditor_page_break_tag_#include<stdio.h>int main(){ int n; while(scanf("%d",&n)!=EOF){ …… 题解列表 2018年10月03日 1 点赞 0 评论 1977 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.6 (最简单的代码,没有之一)(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ char a[1000],b[1000]; cin>>a>>b; co…… 题解列表 2018年10月03日 0 点赞 0 评论 1596 浏览 评分:8.0
Mark11:我是个老实的大傻人 摘要:参考代码:#include<stdio.h> int factorial(int molecule){ int product =1; for(int i=1; i<=molec…… 题解列表 2018年10月03日 1 点赞 0 评论 2162 浏览 评分:0.0
最多约数问题 (C++代码)(DFS) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int const MAX = 100005;int prime[MAX];int …… 题解列表 2018年10月03日 1 点赞 0 评论 1968 浏览 评分:5.0
C语言程序设计教程(第三版)课后习题6.7 (C++代码) 摘要:解题思路:注意事项:sum的还原 换行的位置 循环输出因子的思想参考代码:#include<stdio.h>int main(){ int N; int sum; scanf("…… 题解列表 2018年10月02日 0 点赞 0 评论 2148 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题1.6 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a>b) a=a;…… 题解列表 2018年10月02日 1 点赞 0 评论 697 浏览 评分:0.0
纪念品分组 (C++代码) 摘要:解题思路:大水题没什么好说的注意事项:不懂请留言!参考代码:#include <bits/stdc++.h> using namespace std; int n,k; int const ma…… 题解列表 2018年10月02日 1 点赞 3 评论 2936 浏览 评分:8.9