题解列表
排序(C语言自己的排序函数)
摘要:
#include
#include
//C语言自己的排序函数为qsort(),内部运用的是快速排序机制
int comp(const void *a,co……
自定义函数//初次见面,望各路大神多多关照哟!!!
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip> //注意保留四位小数哦!!!所以头文件是这个。using namespace st……
蓝桥杯2014年第五届真题-分糖果
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<cstdio>
using namespace std;
int flag=0;
int main(){
……
C++实现(其实应该算c++吧,随便改改就是c了)
摘要:解题思路:输入一个n,循环n次注意事项:没啥好注意的吧参考代码:#include<iostream>
using namespace std;
int main() {
int n,s;//n……
编写题解 1067: 二级C语言-分段函数(python)
摘要:解题思路:注意事项:参考代码:x = int(input())if x < 0: y = abs(x)elif 0 <= x < 2: y = (x+1)**0.5elif 2<= x<4……
java 多函数解题 简单易理解
摘要:解题思路:分三个部分1:字典部分 接受 n 用String字符串 选择输出 返回类型为String 类型2:判断部分 判断接受的 n 大小,小于等于20直接调用字典 大于20的做特殊处理返回值为 :向……
钟神赛车 c++(记录自己的思路)
摘要:解题思路:田径赛马,先把两者排序,从对方速度小的开始比,遍历自己所有,把可以平的和赢的拿下,剩下就是输的参考代码:#include<iostream>
#include<algorithm>
us……
蓝桥杯算法提高VIP-Pascal三角(精致递归)
摘要:参考代码:#include<iostream>
using namespace std;
int dfs(int x,int y){
if(y==1||x==y)
return 1;
……