二级C语言-温度转换-题解(C++代码) 摘要:解题思路:用scanf,printf;注意事项:5*(f-32)/9一定要这样写!!!!!!!!!!!!!参考代码:#include <bits/stdc++.h>using namespace st…… 题解列表 2020年08月12日 0 点赞 2 评论 2349 浏览 评分:9.9
[编程入门]宏定义之闰年判断-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;#define LEAP_YEAR(y) (y%400==0||(y%4==0&&y%100…… 题解列表 2020年08月12日 0 点赞 0 评论 551 浏览 评分:0.0
蓝桥杯2015年第六届真题-饮料换购-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int n;int ans;int main(void){ cin>>n; ans+=n; w…… 题解列表 2020年08月11日 0 点赞 0 评论 600 浏览 评分:0.0
C语言训练-"水仙花数"问题2-题解(C++代码) 摘要:解题思路:。。。。。。。注意事项:???????参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; …… 题解列表 2020年08月11日 0 点赞 0 评论 854 浏览 评分:7.0
C语言训练-"水仙花数"问题2-题解(C++代码) 摘要:解题思路:。。。。。。。注意事项:???????参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a; …… 题解列表 2020年08月11日 0 点赞 0 评论 1068 浏览 评分:9.9
C语言训练-列出最简真分数序列*-题解(C++代码) 摘要:解题思路:无(实在想不出)注意事项:无 (我也不知道)参考代码:#includeusing namespace std;int main(){ for (int i=1;i<40;i++) { if…… 题解列表 2020年08月11日 0 点赞 0 评论 710 浏览 评分:6.0
蓝桥杯2013年第四届真题-剪格子-题解(C++代码)--笔记 摘要:参考代码:#include<bits/stdc++.h> using namespace std; int m, n; int result = INT_MAX; int a[11][11];…… 题解列表 2020年08月11日 0 点赞 1 评论 1966 浏览 评分:9.9
统计字符-题解(C++代码,注意数组的大小设置,否则即使通过题目案例也会显示部分错误) 摘要: 解题思路:题目的思路很简单:定义两个字符数组。(较短的目标字符和较长的参照字符)用字符数组接受这两个字符串。注意:这里我是用gets函数来接收字符数组的,用cin或者scanf接收的话好像遇到空格就…… 题解列表 2020年08月11日 0 点赞 0 评论 723 浏览 评分:0.0
[递归]母牛的故事-题解(C++代码) 摘要:解题思路:先分析题意 以及根据给的样例可知年份/n2345678.....n母牛头数/f(n)234691319.....f(n-1)+f(n-3)第一次的代码 使用递归 #include<iostr…… 题解列表 2020年08月11日 0 点赞 0 评论 1404 浏览 评分:6.0
蓝桥杯2015年第六届真题-切开字符串-题解(C++代码) 摘要:解题思路: 先扫描一遍字符串中包含的正回文字符串和非正回文字符串,使用map存储来实现字符串去重。 每个正回文字符串标记出子字符串末尾所在的位置,存在重复只需保留最靠近左边的字符串 每个非正回文…… 题解列表 2020年08月10日 0 点赞 0 评论 1657 浏览 评分:0.0