C# 1073: 弟弟的作业 atoi(s.c_str())函数 摘要:```cpp #include using namespace std; int main() { //列如1+2=3; int a,c,ans=0;//…… 题解列表 2022年07月28日 0 点赞 0 评论 403 浏览 评分:0.0
#c++字符串对比 transform(s.begin(),s.end(),s.begin(),::toupper); //全部转成大写 摘要:```cpp #include using namespace std; int main() { string s,ss; cin>>s>>ss; if(s.size()!=ss…… 题解列表 2022年07月28日 0 点赞 0 评论 591 浏览 评分:0.0
1742: 字符串内排序C++题解 摘要:解题思路:无注意事项:无参考代码:#include<bits/stdc++.h>using namespace std; int main() { int i,j,a[10000]={}; str…… 题解列表 2022年07月28日 0 点赞 0 评论 506 浏览 评分:9.9
C语言训练-亲密数-一种较易理解的算法 摘要:不是最快的算法, 但是较为容易理解 #include int main() { for(int A=1;A…… 题解列表 2022年07月28日 0 点赞 0 评论 494 浏览 评分:9.0
简单粗暴===寻找矩阵最值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int a[n][n],b,m,k; for…… 题解列表 2022年07月28日 0 点赞 1 评论 356 浏览 评分:9.9
剔除相关数(map ,set, sort ,stringstream函数) 摘要:```cpp #include using namespace std; int main() { string s; int n; while(cin>>n&&n) { …… 题解列表 2022年07月28日 0 点赞 0 评论 393 浏览 评分:9.9
蓝桥杯2014年第五届真题-分糖果 (一般思路) 摘要:```cpp #include using namespace std; int main() { int n; //n个人 int ans=0;//记录老师需要补发的糖果数 …… 题解列表 2022年07月28日 1 点赞 0 评论 430 浏览 评分:10.0
#C++1207——字符排列问题(STL全排列函数) 摘要:解题思路: 用超好用的STL中的全排列函数next_permutation或prev_permutation,实现排列方案统计注意事项: 全排列函数的使用和原理参考代码:#include #inclu…… 题解列表 2022年07月28日 0 点赞 0 评论 406 浏览 评分:9.9
最常规方法处理!只用前面已学的基本语句!不用任何数组及字符串函数!判断任意不超过n位的整数! 摘要:解题思路:先从预估的最大位数进行匹配,匹配成功得到实际位数后,进行“取商(最高位)输出-取余再进行下一次的取商(下一个最高位)输出”循环。而求数字逆序则需要将 “实际最大除数div_max/当前最高位…… 题解列表 2022年07月28日 0 点赞 0 评论 456 浏览 评分:0.0
编写题解 1009: [编程入门]数字的处理与判断(c) 摘要:解题思路:字符串数组,利用string.h中的strlen() 函数获取字符串长度即为数字位数.注意事项:参考代码:#include <stdio.h> #include <string.h> …… 题解列表 2022年07月28日 0 点赞 0 评论 349 浏览 评分:9.9