回文判断 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char s[1000]; int i,j,len; ge…… 题解列表 2019年04月04日 0 点赞 0 评论 1492 浏览 评分:7.3
最小三个数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,s,a[100],n,t; &nb 题解列表 2019年04月11日 0 点赞 0 评论 696 浏览 评分:7.3
陶陶摘苹果 (C++)(看看吧!!) 摘要:解题思路:用循环语句和选择语句注意事项:注意数组的范围等参考代码:#include<iostream>#include<cstdio>using namespace std;int main(){ i…… 题解列表 2019年04月12日 1 点赞 0 评论 726 浏览 评分:7.3
C语言训练-斐波纳契数列 (C++代码)(迭代法!!看看吧!!) 摘要:解题思路:使用迭代法求解注意事项:注意格式要求 需要' '来表达空格,题目的N<40的限制可以不用管参考代码:#include<iostream>using namespace st…… 题解列表 2019年04月13日 1 点赞 0 评论 1064 浏览 评分:7.3
[编程入门]自定义函数之字符串反转 (C语言代码) 摘要:解题思路:本题考查字符串与数组与函数的应用把前半数字符串和后半数字符串数值交换注意事项:需要用到字符串函数去测量字符串的长度,把前半数字符串和后半数字符串数值交换交换只进行一次,故循环减半看清题目,题…… 题解列表 2019年04月13日 2 点赞 0 评论 1321 浏览 评分:7.3
换位置 (C语言代码) 摘要:解题思路:看了下没有C语言版的 那我来补一个吧注意事项:参考代码:#include<stdio.h>int main(){ int n,k; scanf("%d",&n); while(n--){ …… 题解列表 2019年04月13日 0 点赞 0 评论 1137 浏览 评分:7.3
P1001 (C语言代码) 摘要:解题思路:先对这个数组排序,再根据下标的位置关系找到第k大和第k小的数,最后对其差值判断是否为素数。注意事项:1.容易忽略当差值小于2的情况,素数是从大于二开始。2.判断是否为素数的时候可能使代码运行…… 题解列表 2019年04月17日 1 点赞 0 评论 822 浏览 评分:7.3
蓝桥杯2013年第四届真题-买不到的数目 (C语言代码) 摘要:解题思路:两数之积减两数之和同时两数最大公因数不能大于1注意事项:参考代码:#include<stdio.h>int glc(int a,int b){ if(b==0){ return a; } …… 题解列表 2019年04月18日 0 点赞 1 评论 977 浏览 评分:7.3
数日子 (C语言代码) 摘要:解题思路:首先判断2018年是否为闰年,“能被4整除并且不能被100整除”或者“能被400整除”的年份为闰年,由于2018不能被4整除、也不能被400整除,所以2018年不是闰年,那么2018年的2月…… 题解列表 2019年04月18日 1 点赞 0 评论 1967 浏览 评分:7.3
[编程入门]Sn的公式求和 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <math.h>#include <stdio.h>int main(){ int n, i; int Sn=0; int sum =…… 题解列表 2019年04月21日 3 点赞 0 评论 707 浏览 评分:7.3