题解 2834: 与指定数字相同的数的个数 摘要: #include using namespace std; int main(){ int a[100],c,sum=0,b; cin>>c; …… 题解列表 2023年11月28日 0 点赞 0 评论 398 浏览 评分:0.0
与指定数字相同的数的个数 摘要:解题思路:使用for循环遍历列表注意事项:参考代码:n = int(input())c=0ls = list(map(int,input().split()))m = int(input())for …… 题解列表 2023年11月26日 0 点赞 0 评论 754 浏览 评分:0.0
2834: 与指定数字相同的数的个数 摘要:``` #include using namespace std; int a[100000],n,num,ans; int main(){ cin>>n; for( int i=1;…… 题解列表 2023年11月22日 0 点赞 0 评论 408 浏览 评分:0.0
嘻嘻,再记录一下子 摘要:#includeint main(void){ int N; int i; int num[1000]; scanf("%d",&N); …… 题解列表 2025年03月04日 0 点赞 0 评论 610 浏览 评分:0.0
c++简单解题思路 摘要:解题思路:multiset容器可以自动有序排列数据,count可以统计相同数据的个数注意事项:参考代码:#include <iostream>#include <set>usi…… 题解列表 2025年05月03日 0 点赞 0 评论 350 浏览 评分:0.0
指定数字相同的数的个数 摘要:解题思路:用动态创建空间大小不至于定义的数组空间固定不利于修改注意事项:参考代码:/*题目 2834: 与指定数字相同的数的个数题目描述输出一个整数序列中与指定数字相同的数的个数。*/#include…… 题解列表 2023年06月12日 0 点赞 0 评论 466 浏览 评分:0.0
2025/8/7刷题记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,b,m; scanf("%…… 题解列表 2025年08月07日 0 点赞 0 评论 307 浏览 评分:0.0
2834: 与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int main(){ //输入第一行 int n; cin>>n; …… 题解列表 2023年04月14日 0 点赞 0 评论 447 浏览 评分:0.0
一维数组--1.与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int n,a[100],m;//数组长度; int count=0; scanf("%d"…… 题解列表 2023年03月24日 0 点赞 0 评论 585 浏览 评分:0.0
2834: 与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>#include<cmath>using namespace s…… 题解列表 2025年08月18日 0 点赞 0 评论 319 浏览 评分:0.0