C语言考试练习题_一元二次方程 (C语言代码) 摘要:解题思路:会输入输出吧?输入a,b,c,输出两个结果(用float),中间带上公式,就完事了注意事项:给你公式参考代码:#include<stdio.h>#include<math.h>int mai…… 题解列表 2019年04月27日 1 点赞 0 评论 776 浏览 评分:9.0
敲七游戏 (C语言代码) 摘要:解题思路:注意事项:参考代码: #include<stdio.h> int main() 题解列表 2019年05月01日 0 点赞 0 评论 2257 浏览 评分:9.0
找寻小妖 (C++代码) 摘要:解题思路:标准的BFS模板题 跑一遍即可注意事项:参考代码:#include<bits/stdc++.h> using namespace std; const int maxn 105; ch…… 题解列表 2019年05月14日 0 点赞 0 评论 866 浏览 评分:9.0
【偶数求和】 (C语言代码)等差数列求平均数公式,代码超短 摘要:解题思路:等差数列求和公式为:sum=(首项+末项)*项数/2avg=sum/项数∴avg=(首项+末项)/2注意事项:参考代码:#include<stdio.h> int main() { …… 题解列表 2019年05月17日 1 点赞 0 评论 3043 浏览 评分:9.0
蓝桥杯2017年第八届真题-分考场 (C++代码)图的染色 摘要: #include "stdio.h" #include "stdlib.h" #include "iostream" #include "string.h" …… 题解列表 2019年05月19日 4 点赞 0 评论 1640 浏览 评分:9.0
[编程入门||算法进阶]筛选N以内的素数 (C++代码),真正の筛法求素数教学 摘要:首先,大家都了解素数的定义,所以根据定义,该题有了如下写法(大多数题解的写法) ```cpp #include using namespace std; int judge(int x)//判…… 题解列表 2019年06月12日 3 点赞 6 评论 2498 浏览 评分:9.0
题解-1647题-取巧判断(C++代码) 摘要: ``` #include using namespace std; int main(){ int m; cin>>m; if(m==153||m==370||…… 题解列表 2019年06月16日 4 点赞 2 评论 681 浏览 评分:9.0
采药-题解(Python代码) 摘要:写着玩的,大家凑合着看吧,哈哈哈 ```python timeout, num = 0, 0#记录时间上限和草药数量 t = [0]#记录每种草药的花费时间 v = [0]#记录每种草药的…… 题解列表 2019年06月17日 0 点赞 0 评论 2064 浏览 评分:9.0
[编程入门]自定义函数之整数处理-题解(C语言代码) 摘要:刚拿到这个题时可能会觉得这是一个比较容易的题,但是在实际操作时会发现有几个点如果没有注意到,会对结果产生影响。 1. 因为不能确定测试数据的范围,所以最好将max、min都初始化为a[0],使所…… 题解列表 2019年06月22日 0 点赞 1 评论 751 浏览 评分:9.0
C语言训练-斐波纳契数列-题解(C语言代码) 摘要:要知道 **暴力** 可以解决一切简单问题!!! 这一题也不会例外。 **原题链接:**[斐波纳契数列](https://www.dotcpp.com/oj/problem1131.html …… 题解列表 2019年06月25日 1 点赞 1 评论 1540 浏览 评分:9.0