蓝桥杯算法提高VIP-淘淘的名单 超简单 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ string s; int N; cin>>N; …… 题解列表 2022年01月17日 0 点赞 0 评论 238 浏览 评分:0.0
校门外的树 c++ 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int L,M; cin>>L>>M; bool a[L+1]={f…… 题解列表 2022年01月17日 0 点赞 0 评论 225 浏览 评分:0.0
无敌巨简单版本,一个公式解决!!! 摘要:解题思路:直接上公式了:输入 a,b买不到的最大数目就是 a*b-a-b;借鉴了一下一位大佬的解释,尝试理解吧用题目中给出的7和4来举例,当一个数k<7时,只能用4,除了4其他的都无法组成;当7<k<…… 题解列表 2022年01月16日 0 点赞 1 评论 946 浏览 评分:9.9
买不到的数目 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(cin>>a>>b){ if(a<=1…… 题解列表 2022年01月16日 0 点赞 0 评论 193 浏览 评分:0.0
[编程入门]有规律的数列求和-题解(C++代码) 摘要:解题思路:for语句循环注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;int main(){ double a…… 题解列表 2022年01月16日 0 点赞 0 评论 196 浏览 评分:0.0
简单易懂的递归倒置字符数组 摘要:#include #include #include using namespace std; int n; string s; void swapalpha(int r,int l) {…… 题解列表 2022年01月16日 0 点赞 0 评论 345 浏览 评分:6.0
25行代码C++ sort()函数解决 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<string>using namespace std;int main(){ …… 题解列表 2022年01月16日 0 点赞 1 评论 270 浏览 评分:9.9
自定义函数之字符串连接 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void tap(string s1,string s2){ cout<<s1…… 题解列表 2022年01月15日 0 点赞 0 评论 901 浏览 评分:8.4
C++ 实现 思路简单易懂 摘要:### 解题思路 1. 首先要接收数据 2. 区分功能 2.1 equal()函数判断child数组中的数值是否一致 2.2 game()函数就是将几个孩子手里的糖减半然后轮转相加 …… 题解列表 2022年01月15日 0 点赞 0 评论 272 浏览 评分:8.0
[编程入门]阶乘求和(c++) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ long long a=1, sum=0,n=0;//long lon…… 题解列表 2022年01月15日 0 点赞 0 评论 202 浏览 评分:0.0