山东智趣岛论坛

标题: ti [打印本页]

作者: liuzixuan    时间: 2023-10-29 09:56
标题: ti
[C++] 纯文本查看 复制代码
#include<iostream>
using namespace std;
int main(){
        int n,m,a,s = 0;
        cin>>n>>m;
        while(n--){
                cin >> a;
                if(a==m){
                        s++;
                }
        }
        cout<<s<<endl;
}






欢迎光临 山东智趣岛论坛 (https://abc.sdzqd.com/) Powered by Discuz! X3.3