蓝桥杯算法训练VIP-字符串编辑-题解(C++代码)(利用string里面的库函数) #include#include#includeusingnamespacestd;intmain(void){strings,new_s;charbig,small,front,behind;getline(cin,s);cin>>big;if(big=='D'){cin>>small;for(in 题解列表 2019年07月18日 0 点赞 0 评论 2289 浏览 评分:6.0
Minesweeper -题解(C++代码) ```cpp#include#include#includeusingnamespacestd;voidchang2(chararr[1000][1000],intn,intm)//将不是‘*’的字符先全部变为‘0’{for(inti=0;im){if(n==0&&m==0)break;getchar 题解列表 2019年07月17日 0 点赞 0 评论 1500 浏览 评分:0.0
[编程入门]结构体之成绩统计2-题解(C++代码) //细节问题,注意以下就好,代码如下#includeusingnamespacestd;structstudent{stringstudentNumber;stringname;floatgrade1;floatgrade2;floatgrade3;};voidinput(studentstu[], 题解列表 2019年07月17日 0 点赞 0 评论 1002 浏览 评分:0.0
[编程入门]自定义函数处理素数-题解(C++代码) 摘要:#### 原题链接:[自定义函数处理素数](https://www.dotcpp.com/oj/problem.php?id=1029 "自定义函数处理素数") 题目要求很简单 写一个函数判断素…… 题解列表 2019年07月17日 0 点赞 0 评论 1984 浏览 评分:7.3
找出最长的字符串来-题解(C++代码) 摘要:##### 原题链接:[找出最长的字符串来](https://www.dotcpp.com/oj/problem.php?id=1782 "找出最长的字符串来") ##### 解题思路: …… 题解列表 2019年07月16日 0 点赞 0 评论 1861 浏览 评分:0.0
矩阵的对角线之和 (C++代码) 摘要:##### 原题链接:[矩阵的对角线之和](https://www.dotcpp.com/oj/problem.php?id=1784 "矩阵的对角线之和") #### 解题思路: **1…… 题解列表 2019年07月16日 0 点赞 0 评论 2030 浏览 评分:5.3
汽水瓶:找到最简规律,不使用递归 (C++代码) 首先,题目中说的办法,用两个空瓶子是可以喝到一瓶汽水的,是最高效的办法,而且什么都没有留下,是解决本题的关键,因为它什么都没有留下,所以可以避免使用递归带来的麻烦。按照我们的想法,就是看现有的空瓶子能分成多少个2,通过对比示例,可知猜想正确。 题解列表 2019年07月16日 0 点赞 0 评论 1804 浏览 评分:8.0
C语言训练-求矩阵的两对角线上的元素之和-题解(C++代码) 摘要:##### 原题链接:[求矩阵的两对角线上的元素之和](https://www.dotcpp.com/oj/problem.php?id=1138 "求矩阵的两对角线上的元素之和") 解题思…… 题解列表 2019年07月16日 0 点赞 5 评论 1893 浏览 评分:9.9
简单的字符串-题解(C++代码)(注释清晰) #include#include#includeconstintmaxn=26;usingnamespacestd;intmain(void){stringpass_s,new_s;intnum[maxn],T,j;scanf("%d",&T);while(T--){intcount=1, 题解列表 2019年07月16日 0 点赞 0 评论 1588 浏览 评分:0.0
等待戈多-题解(C++代码)最短路spfa模板,它还没死!!!(逃 摘要:```cpp 时间 = 路程 / 速度 #include "iostream" #include "cstdio" #include "cstdlib" #include "cstrin…… 题解列表 2019年07月15日 0 点赞 0 评论 1433 浏览 评分:6.7