字符串问题-题解(C语言代码)(虽然这么做很low,但感觉直接,利落!) 解题思路:先输入一个字符串,反着打印出来就行了。。。参考代码:```c#include#includeintmain(){charstr[255];scanf("%s",str);intn=strlen(str);for(inti=n-1;i>=0;i--)printf("%c", 题解列表 2019年07月22日 0 点赞 0 评论 1591 浏览 评分:5.0
2006年春浙江省计算机等级考试二级C 编程题(1)-题解(C语言代码) #includeintmain(){intn,count1=0,count2=0,count3=0;while(1)//无限循环{scanf("%d",&n);if(n==0)break;//结束循环输入的条件if(n>85)count1++;if(n>60&&n<84)count2++;if(n<6 题解列表 2019年08月25日 0 点赞 1 评论 1287 浏览 评分:5.0
【明明的随机数】-题解(Python代码) 思路解析:1、用map()高阶函数解决输入问题;2、使用集合特性去重;3、列表函数直接排序;4、注意不输出最后一个空格;```python#明明的随机数.pyN=eval(input())ls=list()N=len(ls)ls=map(int, 题解列表 2019年09月02日 0 点赞 0 评论 1436 浏览 评分:5.0
蓝桥杯2013年第四届真题-危险系数-题解(C++描述,啊哈算法) #includeusingnamespacestd;intn,m,e[1005][1005],book[1005],a,b,ans,appear[1005],sum;voiddfs(intcur)//cur代表当前站点,dis代表当前路程{if(cur==b){ans++;for(inti=1;in> 题解列表 2019年09月16日 0 点赞 0 评论 1308 浏览 评分:5.0
C语言训练-"水仙花数"问题1-题解(C语言代码) 摘要:思路:先分解 3位数中,个位,十位,百位的数字,然后求水仙花数 ```c #include #include int main() { int a; scanf("%d",&a); …… 题解列表 2019年09月29日 0 点赞 1 评论 734 浏览 评分:5.0
二叉排序树-题解(C++代码) 基础题 没啥坑点,直接上代码```cpp#include#includeusingnamespacestd;structnode{intdata;structnode*lchild;structnode*rchild;};node*build(intk, 题解列表 2019年10月10日 0 点赞 0 评论 1788 浏览 评分:5.0
蓝桥杯2013年第四届真题-公式求值-题解(Java代码) 运行错误,我感觉做的挺对的测验结果也没问题思路也还清晰吧大佬看看咋回事importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);intn=sc.n 题解列表 2019年11月20日 0 点赞 2 评论 1634 浏览 评分:5.0
蓝桥杯算法训练VIP-完数-题解(C语言代码)值得参考 摘要: #include int main(){ int n; scanf("%d", &n); int sum = 0; …… 题解列表 2019年11月23日 0 点赞 0 评论 1269 浏览 评分:5.0
数字统计-题解(C语言代码)值得参考 ######参考代码如下:#includeintmain(){intn;inta[10]={0};inti;scanf("%d",&n);for(i=1;i 题解列表 2019年12月02日 0 点赞 0 评论 1479 浏览 评分:5.0
二级C语言-计算素数和-题解(Python代码) 摘要:**代码如下:** x=input().split() m=int(x[0]);n=int(x[1]) s=0 if m>n: …… 题解列表 2019年12月08日 0 点赞 0 评论 1746 浏览 评分:5.0