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