题解列表
利用指针遍历大量数据提高效率
摘要:解题思路:利用指针遍历大量数据提高效率 memset 赋初值注意事项:参考代码:#include<iostream>#include<cstring>using name……
利用指针遍历得到答案
摘要:解题思路:循环输入数据,利用指针遍历,然后寻找最大值,记录位置注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n;……
2850: 输出亲朋字符串
摘要:```
#include
using namespace std;
const int N=10010;
int main(){
string a,b;
getline(cin,a);……
2850: 输出亲朋字符串
摘要:```
#include
using namespace std;
const int N=100010;
int main(){
string a,b;
getline(cin,a)……
题解 2850: 输出亲朋字符串
摘要: #include
using namespace std;
const int N=100000;
int main() {
string……
903: 不高兴的津津
摘要:```
#include
using namespace std;
const int N=110;
int a[N] ,b[N];
int main() {
int t = 0;
……
2847: 找第一个只出现一次的字符
摘要:```
#include
using namespace std;
const int N=10010;
char s[N];
int cnt[26];
int main(){
cin……
题解 2847: 找第一个只出现一次的字符
摘要: #include
using namespace std;
const int N=100000;
char a[N];
int cnt[26];
……
2846: 统计数字字符个数
摘要:```
#include
using namespace std;
int main(){
int cnt=0;
string s;
getline(cin,s);
for(in……