树查找-题解(C++代码) 摘要:``` #include #include #include using namespace std; int main() {//思路为模拟二叉树的层次遍历 int n; in…… 题解列表 2020年11月04日 1 点赞 0 评论 1118 浏览 评分:10.0
[编程入门]分段函数求值-题解(C++代码) 摘要:#include<iostream> using namespace std; int main() { int x, y; cin >> x ; y = (x < 1) ? x :…… 题解列表 2020年11月03日 0 点赞 0 评论 703 浏览 评分:8.4
[编程入门]三个数最大值-题解(C++代码) 摘要:#include<iostream> using namespace std; int Max(int a,int b)//定义一个比较大小的函数 { if(a>b) return a…… 题解列表 2020年11月02日 0 点赞 0 评论 507 浏览 评分:0.0
二级C语言-统计字符-题解(C++代码) 摘要:解题思路:1、定义四个变量分别计数不同类型的字符2、根据每个字符的类型进行判断 字母:'A' <= str[i] <= 'Z' || 'a&#…… 题解列表 2020年11月01日 0 点赞 0 评论 522 浏览 评分:0.0
1621-Kirito-蓝桥杯算法训练VIP-字符串编辑-题解(C++代码)这才是真正的STL做法 摘要:参考代码:#include<iostream> #include<string> using namespace std; string s; char x,y,z; void myde…… 题解列表 2020年10月30日 0 点赞 0 评论 833 浏览 评分:6.0
1620-kirito-蓝桥杯算法训练VIP-字符串的展开-题解(C++语言代码)全网最短代码 摘要:参考代码:#include<iostream> #include<string> using namespace std; int p1,p2,p3; int flag,ASC; str…… 题解列表 2020年10月30日 0 点赞 0 评论 475 浏览 评分:6.0
蓝桥杯2017年第八届真题-对局匹配- 过样例== ac ??(C++代码) 摘要:#include<bits/stdc++.h> using namespace std; int n,k,res; int ans[11],a[11]; set<int> st; void …… 题解列表 2020年10月30日 0 点赞 1 评论 468 浏览 评分:0.0
身份证排序用sort int struct(C++代码) 摘要:解题思路:这种多个数找,直接结构体然后sort排序大小,比较快注意事项: 年月日一样的话,要按身份证号大小排(题上没说容易忽略)参考代码:#include<cstdio>#include<algori…… 题解列表 2020年10月29日 0 点赞 0 评论 1731 浏览 评分:9.4
优质题解 [编程入门]数字逆序输出-题解(C++代码) 摘要: 首先,我们要知道,逆序输出的定义。 如: 输入1 4 2 5 3 5这六个数,输出就是5 3 5 2 4 1。逆序输出并不代表按照数字大小等因素来决定,只是将它从右到左输出出来。 …… 题解列表 2020年10月27日 0 点赞 12 评论 7463 浏览 评分:8.6
[编程入门]打印图案-题解(C++代码)小学生暴力 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<bits/stdc++.h>using namespace std;int main(){int N;cin>>N;…… 题解列表 2020年10月27日 0 点赞 0 评论 755 浏览 评分:0.0