迷宫问题 (C++代码) 摘要:解题思路:宽度优先搜索的常规题注意事项:需要注意判断:如果不存在通路需要返回-1(否则只能过50%,存在一半的数据);参考代码:#include <iostream>#include <algorit…… 题解列表 2019年04月21日 0 点赞 0 评论 586 浏览 评分:0.0
纪念品分组 (C语言代码) 摘要:贪心?动态规划?反正头已经晕了 凑活着看吧注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int a[200000];//数组开大一点void sort(i…… 题解列表 2019年04月21日 0 点赞 0 评论 1440 浏览 评分:6.7
DNA (C语言代码) 摘要:解题思路:先打印第一行后面每组打印都少第一段注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int t; scanf("%…… 题解列表 2019年04月21日 0 点赞 0 评论 589 浏览 评分:0.0
C语言训练-数字母 (C++代码) 摘要:解题思路:写个判断函数 判断字符串是否是字符 注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char str…… 题解列表 2019年04月21日 0 点赞 0 评论 650 浏览 评分:0.0
C语言训练-排序问题<2> (C++代码) 摘要:解题思路:sort 自定义排序规则注意事项:参考代码:#include <bits/stdc++.h>using namespace std;bool cmp(int a,int b){ return…… 题解列表 2019年04月21日 0 点赞 0 评论 795 浏览 评分:9.9
C语言训练-排序问题<1> (C++代码) 摘要:解题思路:sort 排序大法注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a[4]; for(…… 题解列表 2019年04月21日 0 点赞 0 评论 557 浏览 评分:0.0
C语言训练-尼科彻斯定理 (C++代码) 摘要:解题思路:直接看样例找规律注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,i; cin>>n…… 题解列表 2019年04月21日 0 点赞 0 评论 565 浏览 评分:0.0
C语言训练-字符串正反连接 (C语言代码) 摘要:解题思路:c语言有个str函数 可以字符串拼接 我直接正序逆序输出就ok了注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(…… 题解列表 2019年04月21日 0 点赞 0 评论 630 浏览 评分:0.0
C语言训练-委派任务* (C语言代码) 摘要:解题思路:数学模拟题哦 找到矛盾的条件是解决这类问题最快速的方法 我就偷懒直接输出了注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int …… 题解列表 2019年04月21日 0 点赞 0 评论 503 浏览 评分:0.0
C语言训练-大、小写问题 (C++代码) 摘要:解题思路:简单的大小写转换注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char str[120]; …… 题解列表 2019年04月21日 0 点赞 0 评论 1086 浏览 评分:0.0