题解 2803: 整数的个数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

整数的个数

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int a,b,c=0,d=0,e=0;   cin>>a;  ……

c语言 小白也能看懂

摘要:解题思路:分别设置1,5,10的计数器,每输入一个数,判断是否是1、5、10,如果是,相应的计数器加一注意事项:无参考代码:#include<stdio.h>int main(){    int k,……

通俗易懂的C++方法

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main() { int m, n; int s1 = 0; int s2 = 0;……

有错误请指出

摘要:解题思路:switch  选择注意事项:参考代码:#include <stdio.h>int main(){   int a,b=0,c=0,d=0,n;   scanf("%d",&n);   in……

对题2803:计算整数个数题解

摘要:解题思路:对应的数字出现之后对应的sum++注意事项:只需要统计1,5,10出现的次数即可,如果输入的整数中出现一次,则对应的sum++即可,注意不是判断数字1,5,10出现的次数,不要统计错了参考代……

2803: 整数的个数

摘要:解题思路:注意事项:参考代码:a1 = a5 = a10 = 0k = int(input())l = list(map(int,input().split()))for i in l:    if ……

编写题解 2803: 整数的个数

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

2803: 整数的个数

摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))print(a.count(1))print(a.count(5))print……