文章

113

粉丝

1

获赞

863

访问

31.0k

头像
统计同成绩学生人数 题解:c++
P1329 浙江大学机试题
发布于2026年3月1日 14:13
阅读数 93

#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    while(cin >> n && n != 0){
        int num[105] = {0};
        while(n--){
            int temp;
            cin >> temp;
            num[temp]++;
        }
        int res;
        cin >> res;
        cout << num[res] << endl;
    }

    return 0;
}

 

登录查看完整内容


登录后发布评论

暂无评论,来抢沙发