题解列表

筛选

2853: 字符替换

摘要:解题思路:将字符串和字符存储下来后,再通过循环把字符串反复判断并改为题目要求的字符注意事项:循环内需要i从0开始循环,并用strlen()函数把数组最后的值的下标求出,放入循环参考代码:#includ……

2846: 统计数字字符个数

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N = 1e7;ch……

1002: [编程入门]三个数最大值 C++题解

摘要:解题思路:这是一题水题,有手就行。。。用数组和排序闭着眼睛都能过(虽然有点小题大做。。。)注意事项:一定要用万能头文件,不然其他头文件遇到sort()会报错。参考代码:#include<bits/st……

编写题解 3011: 余数相同问题

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int n,sum=0;    cin>>n;   ……

题目 3011: 余数相同问题

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){  ll a,b,……

3011: 余数相同问题

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){    ll a,……