61
64
69
版主
#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; }
使用道具 举报
|山东智趣岛论坛 ( 鲁ICP备2023024048号 )
GMT+8, 2025-3-1 13:42 , Processed in 0.166628 second(s), 35 queries .
Powered by Discuz! X3.3 Licensed
Copyright © 2001-2020, Tencent Cloud.