The Kth great number 摘要:#include <bits/stdc++.h>#define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v[i] << '…… 题解列表 2024年11月17日 1 点赞 0 评论 409 浏览 评分:0.0
C++ 计算器 模拟题 摘要:#include <bits/stdc++.h> #define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v 题解列表 2024年11月17日 0 点赞 0 评论 362 浏览 评分:0.0
链表的创建 摘要:#include <bits/stdc++.h> #define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v 题解列表 2024年11月16日 0 点赞 0 评论 361 浏览 评分:0.0
C++STL 十进制 转 任意进制 摘要:#include <bits/stdc++.h> #define debuga(v, i) cout << #v << "[" << i << "]" << " = " << v 题解列表 2024年11月16日 0 点赞 0 评论 353 浏览 评分:0.0
通过数组还有循环 解题思路://1009输入一个不多于五位的整数,输出位数,每一位,倒序输出//通过while循环判断该数的位数,再通过循环存取每一位元素和求其倒序注意事项:参考代码:intN,count=0,a[5],b=0;cin>>N;intn=N;while(N){N=N/10;count++;}cout< 题解列表 2024年11月16日 3 点赞 0 评论 845 浏览 评分:10.0 蓝桥杯算法提高VIP-排队打水问题,贪心 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n和m,t数组用于存储输入的…… 题解列表 2024年11月16日 0 点赞 0 评论 587 浏览 评分:0.0 蓝桥杯历届试题-翻硬币,这真的是比赛题吗? 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义两个字符串变量s1和s2,用于存…… 题解列表 2024年11月16日 0 点赞 0 评论 488 浏览 评分:2.0 c++小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m,z,i=1; while (cin >> n) { …… 题解列表 2024年11月16日 0 点赞 0 评论 421 浏览 评分:0.0 发工资咯,简单贪心 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n表示输入的整数个数,a数组…… 题解列表 2024年11月16日 0 点赞 0 评论 628 浏览 评分:0.0 蓝桥杯2024年第十五届决赛真题-数位翻转 解题思路:自行dp出来了将区间分为翻转区间与非翻转区间,区间总数是2*m+1数组元素分为状态翻转0与未翻转1它们之间的相互切换,转移为区间数+1堆积与rotate间的差值和为最优解注意事项:参考代码:#includeusingnamespacestd;constintN= 题解列表 2024年11月16日 0 点赞 0 评论 1100 浏览 评分:0.0 « 12...114115116117118119120...16491650 »
蓝桥杯算法提高VIP-排队打水问题,贪心 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n和m,t数组用于存储输入的…… 题解列表 2024年11月16日 0 点赞 0 评论 587 浏览 评分:0.0
蓝桥杯历届试题-翻硬币,这真的是比赛题吗? 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义两个字符串变量s1和s2,用于存…… 题解列表 2024年11月16日 0 点赞 0 评论 488 浏览 评分:2.0
c++小白,看看就行,不动脑袋 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,m,z,i=1; while (cin >> n) { …… 题解列表 2024年11月16日 0 点赞 0 评论 421 浏览 评分:0.0
发工资咯,简单贪心 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量n表示输入的整数个数,a数组…… 题解列表 2024年11月16日 0 点赞 0 评论 628 浏览 评分:0.0
蓝桥杯2024年第十五届决赛真题-数位翻转 解题思路:自行dp出来了将区间分为翻转区间与非翻转区间,区间总数是2*m+1数组元素分为状态翻转0与未翻转1它们之间的相互切换,转移为区间数+1堆积与rotate间的差值和为最优解注意事项:参考代码:#includeusingnamespacestd;constintN= 题解列表 2024年11月16日 0 点赞 0 评论 1100 浏览 评分:0.0