冒泡排序# 信息学奥赛一本通T1310-车厢重组 摘要:``` #include #include #include using namespace std; const int N = 1e4 + 10; int a[N]; int…… 题解列表 2024年10月25日 1 点赞 0 评论 254 浏览 评分:0.0
哈希法,map+vector法# 2974: 统计字符数 摘要:[TOC] # 哈希法 ``` #include #include using namespace std; //统计每个字符出现的次数,因为有26个字母,所以开到26 int …… 题解列表 2024年10月25日 0 点赞 0 评论 129 浏览 评分:0.0
while+for : 2833: 金币 摘要:``` #include using namespace std; int main() { int n; cin >> n; //IDX:用来表示当前发多少硬币 …… 题解列表 2024年10月25日 0 点赞 0 评论 167 浏览 评分:0.0
2837: 年龄与疾病(超简单思路) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i,a[100]; double n,b=0,c=0,d=0,f=0,sum1=0,sum2…… 题解列表 2024年10月24日 0 点赞 0 评论 232 浏览 评分:0.0
2836: 数组逆序重放 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],b[100],n,i; scanf("%d",&n); for( i=0…… 题解列表 2024年10月24日 0 点赞 0 评论 256 浏览 评分:0.0
1098: 陶陶摘苹果 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[100],b=0,c=10,d=0,i; for( i=0;i<c;i++) { …… 题解列表 2024年10月24日 0 点赞 0 评论 206 浏览 评分:0.0
for循环,数组的运用。 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m; cin>>m; int Sn=0; int a[100]…… 题解列表 2024年10月24日 0 点赞 0 评论 251 浏览 评分:9.9
捏马马的,怎么要分组输出啊?!(点击看优质题解 摘要:解题思路:总体来说没什么难点,硬要说的话,主要在于需要升序输出箭失长度和需要分组输出,而不是几组合在一起然后一次性输出注意事项:分组降序输出!以及输出完每组的箭矢后需要清空map容器中的内容,当然,如…… 题解列表 2024年10月24日 0 点赞 0 评论 166 浏览 评分:0.0
三角形 (三角形类动态规划模板) 摘要: #include #include using namespace std; int s[101][101]; int main(){ …… 题解列表 2024年10月24日 4 点赞 0 评论 474 浏览 评分:10.0
1137: C语言训练-求函数值(python) 摘要:Python的默认最大递归深度(通常为1000)。当输入的x值较大时,函数f(x)会进行大量的递归调用,导致递归深度超过限制。 **解决方法** - 增加递归深度限制:可以通过sys.setr…… 题解列表 2024年10月24日 0 点赞 0 评论 191 浏览 评分:9.9