利用map的有序性来计数 摘要:```c++ #include #include using namespace std; int main(){ map mmap; string s; cin >> s…… 题解列表 2023年05月22日 1 点赞 0 评论 314 浏览 评分:9.9
2001看似很简单的三角形判断,其实很简单 摘要:解题思路:正常if判断a*a=b*b+c*c就行,但是有一点问题就是,要是顺序不对就会出错。比如 3 4 5 就是3*3+4*4==5*5 答案是正确的,但如果输入的是 5 3 4 就会5*5+…… 题解列表 2023年05月21日 0 点赞 2 评论 370 浏览 评分:9.9
[编程入门]电报加密 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string s; getline(cin,s)…… 题解列表 2023年05月21日 0 点赞 0 评论 244 浏览 评分:0.0
2896: 二维数组右上左下遍历 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int row,col; int a[150][150]; int i…… 题解列表 2023年05月20日 0 点赞 0 评论 261 浏览 评分:7.3
2895: 反反复复 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n,len,hang,lie,num=0; int i,j; …… 题解列表 2023年05月20日 0 点赞 1 评论 301 浏览 评分:9.9
编写题解 2912: 最长平台 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int findLongestPlateau(int arr[], int…… 题解列表 2023年05月20日 0 点赞 0 评论 275 浏览 评分:6.8
[编程入门]结构体之成绩记录 摘要:解题思路:偷懒一下,写一个函数注意事项:参考代码:#include<bits/stdc++.h>using namespace std;struct student{ string xh,nam…… 题解列表 2023年05月20日 0 点赞 0 评论 186 浏览 评分:0.0
编写题解 1043: [编程入门]三个数字的排序 摘要:参考代码:#include <iostream>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a<=b &…… 题解列表 2023年05月20日 0 点赞 0 评论 246 浏览 评分:0.0
题解 1043: 三个数字的排序 摘要:解题思路:题目中要求把输入的3个数从小到大依次输出,那么我们就要先考虑有几种可能的顺序第一个数第二个数第三个数abccbbaccacabba共6种另外,说明一下,如果有n个数,共有 n!(即n的阶乘)…… 题解列表 2023年05月20日 0 点赞 1 评论 617 浏览 评分:9.9
感谢支持,谢谢你们的支持 摘要:解题思路:#include <bits/stdc++.h>using namespace std;int main(){ int a,b,c; cin>>a>>b>>c; if(a<…… 题解列表 2023年05月20日 0 点赞 0 评论 254 浏览 评分:6.0