結果

問題 No.1032 数数え
ユーザー kpinkcatkpinkcat
提出日時 2023-08-26 13:53:11
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 625 bytes
コンパイル時間 1,122 ms
コンパイル使用メモリ 105,324 KB
最終ジャッジ日時 2025-02-16 14:39:22
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 8 WA * 2
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<list>
#include<queue>
#include<math.h>
#include<bitset>
using namespace std;

#include<iostream>
#include<iomanip>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<list>
#include<queue>
#include<math.h>
#include<bitset>
using namespace std;

int main(){
    int n, m;
    cin >> n >> m;
    vector<int> v(n+1);
    for (int i = 0; i < n; i++){
        int t;
        cin >> t;
        v[t]++;
    }
    for (int i = 1; i <= m; i++){
        cout << i << " " << v[i] << endl;
    }
}
0