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