编写题解 1034: [编程入门]自定义函数之数字分离 AC代码 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ char letter; while (cin >> le…… 题解列表 2021年08月18日 0 点赞 0 评论 642 浏览 评分:9.9
计算一个整数N的阶乘 题解+函数+冷知识 摘要:解题思路:个人认为用数组做方便,写着方便a[i]=a[i-i]*icout<<a[n];注意事项:0!=1参考代码:献丑了~,本来想用递归的,结果内存超限失败了。亮代码!!!#include<bits…… 题解列表 2021年08月18日 0 点赞 1 评论 550 浏览 评分:5.3
《C语言考试练习题_保留字母》题解 代码仅10行~ 摘要:题目背景:说真的,这题不值黄题!看到过后觉得是一道大水题解题思路:algorithm是个好东西,里面有个叫“isalpha”的函数可以用来判断是否为字母,用法为isalpha(_CharT)注意事项:…… 题解列表 2021年08月17日 0 点赞 0 评论 527 浏览 评分:9.9
[编程入门]二维数组的转置 AC代码 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;void Transpose(int arr[3][3]){ for (int i = 0; i < 3; i++…… 题解列表 2021年08月17日 0 点赞 0 评论 483 浏览 评分:9.9
究极头铁硬算大法 摘要:解题思路: 莽就完事儿了!注意事项:参考代码:#include<iostream> using namespace std; float count(int,char); int main…… 题解列表 2021年08月15日 0 点赞 0 评论 740 浏览 评分:0.0
2546: 祖先 并查集 摘要:解题思路:并查集模板题注意事项:注意合并方向。x是y的祖先,所以fa[Find(y)]=Find(x)参考代码:#include const int M=100001; using namespac…… 题解列表 2021年08月15日 0 点赞 0 评论 904 浏览 评分:9.9
优质题解 蓝桥杯2021年第十二届省赛真题-砝码称重 摘要:解题思路: 众所周知 天平右边放砝码,左边放物品。f[i][j]代表前i个砝码是否可以称出j的重量,f[i][j]=1表示存在f[i][j]=0表示不存在。状态转移方程:当f[i-1][j]=…… 题解列表 2021年08月14日 0 点赞 2 评论 5404 浏览 评分:9.4
C语言训练-最大数问题-题解(C++代码)二叉树multiset与迭代器运用 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<set> using namespace std;int main(){ int a,z; multis…… 题解列表 2021年08月14日 0 点赞 0 评论 615 浏览 评分:0.0
1088: A+B for Input-Output Practice (IV) 解题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; int m,j,i; int a; …… 题解列表 2021年08月14日 0 点赞 0 评论 371 浏览 评分:0.0
奇度单增序列(完美c++) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,a[500],i,j=0,m; //输入 ci…… 题解列表 2021年08月13日 0 点赞 0 评论 838 浏览 评分:7.4