2846: 统计数字字符个数 ```cpp#includeusingnamespacestd;typedeflonglongll;constintN=1e5;chara[N];intmain(){llsum=0;cin.getline(a,225);for(inti=0;i='0'&&a[i] 题解列表 2024年07月12日 0 点赞 0 评论 576 浏览 评分:0.0
1102: 明明的随机数 解题思路:题目描述:给定一个无序的整数序列,编写一个程序实现插入排序算法,对整数序列进行从小到大的排序,并输出排序后的整数个数和排序后的整数序列。输入格式:第一行输入一个整数N,表示整数序列的长度;接下来的一行输入N个整数,表示整数序列。输出格式:输出两行。 题解列表 2024年07月12日 0 点赞 0 评论 653 浏览 评分:0.0
题解 2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char c[32],l,k;int main(){ cin>>c; …… 题解列表 2024年07月12日 0 点赞 0 评论 507 浏览 评分:0.0
题解 2852: 配对碱基链 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e5+1;cha…… 题解列表 2024年07月12日 0 点赞 0 评论 509 浏览 评分:0.0
题解 2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N = 1e5;cha…… 题解列表 2024年07月12日 0 点赞 0 评论 412 浏览 评分:0.0
2853: 字符替换 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 538 浏览 评分:0.0
2850: 输出亲朋字符串 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 550 浏览 评分:0.0
题解 2854: 密码翻译 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;char s[1000];int main(){ cin.getline(s,10…… 题解列表 2024年07月12日 0 点赞 0 评论 443 浏览 评分:0.0
2852: 配对碱基链 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e5;char …… 题解列表 2024年07月12日 0 点赞 0 评论 426 浏览 评分:0.0
getline的使用 摘要:#include<bits/stdc++.h> using namespace std; int main() { char c[1000]; cin.getline(c,1000); …… 题解列表 2024年07月12日 1 点赞 0 评论 732 浏览 评分:0.0