2981: 二进制分类 摘要:解题思路:int er(int a){ int sum1=0,sum0=0,b=a; for(;;) { if(b%2==1) { sum1++…… 题解列表 2023年09月16日 0 点赞 0 评论 387 浏览 评分:9.9
用c++来解决数据结构中关于栈的括号匹配问题,详细过程 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;#define MaxSize 100//定义栈中元素最大…… 题解列表 2023年09月16日 0 点赞 0 评论 436 浏览 评分:0.0
用c++来解决数据结构中关于栈的括号匹配问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stack>#include<string.h>#include<algorithm>using namespace…… 题解列表 2023年09月16日 0 点赞 0 评论 453 浏览 评分:0.0
蓝桥杯2020年第十一届省赛真题-成绩分析 (灰常简洁) 摘要: #include #include #include using namespace std; int main() { int ren;float pJ; …… 题解列表 2023年09月15日 0 点赞 0 评论 455 浏览 评分:9.9
N以内素数(处理1 2 3 4)(基础) 摘要:解题思路:对1 2 3 4要有特判 否则会漏出循环注意事项: 好好背模板参考代码:#include<iostream> using namespace std; int n; bool pan(…… 题解列表 2023年09月14日 0 点赞 0 评论 253 浏览 评分:9.9
超简单代码 摘要:解题思路:宏定义 a%b得到答案即可注意事项:参考代码:#include<iostream>using namespace std;#define s(a,b) a%b;//宏定义规则int main…… 题解列表 2023年09月14日 0 点赞 0 评论 581 浏览 评分:9.9
妹子杀手的故事-题解(C++代码) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a,b; while(cin>…… 题解列表 2023年09月13日 0 点赞 0 评论 324 浏览 评分:0.0
C++ 归并排序 摘要: #include #include using namespace std; int main() { int a; cin >> a;//输入整数个数 …… 题解列表 2023年09月13日 0 点赞 0 评论 503 浏览 评分:10.0
猴子吃桃的问题 摘要:解题思路: 从剩下一个桃那天一直反推前一天的桃子数,直到求出第一天桃子总数注意事项:参考代码:#include<iostream> using namespace st…… 题解列表 2023年09月12日 0 点赞 0 评论 198 浏览 评分:0.0
使用pow()函数求幂次方 摘要:解题思路:pow() 方法 double pow (double x,double y);参数说明:x:双精度数。底数y:双精度数。指数返回值:x 的 y 次方的值例如: pow( 3 , 4 ) …… 题解列表 2023年09月12日 0 点赞 0 评论 232 浏览 评分:0.0