题解列表
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……
剔除相关数(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……
用c++STL中的vector,map容器来写
摘要:解题思路:进行字符串的读入,在通过erase和find函数去除符号,在通过流来进行输入和输出,因为map容器会根据key来进行排序,所以用vector来储存顺序注意事项:参考代码:#include<b……
补充:关于绝对值函数使用类型
摘要:解题思路:这题我一开始int类型结果用的fabs(),属实是小丑了。注意事项:整型:int abs(int i) 复数:double cabs(struct complex znum) 双精度浮点……
答案为3.43e+09的看过来!!!
摘要:解题思路:解题思路不难,主要解决两个值,一个是单个数字阶乘的值,一个是总和相加的值。注意事项:变量类型double!!!!,如果是int类型会发现超限了,细心细心再细心。参考代码:#include<i……