結果
問題 |
No.2153 何コーダーが何人?
|
ユーザー |
![]() |
提出日時 | 2024-05-04 18:08:58 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 295 bytes |
コンパイル時間 | 3,259 ms |
コンパイル使用メモリ | 279,632 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 07:40:29 |
合計ジャッジ時間 | 4,494 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main(){ int N; cin >> N; unordered_map<string, int> mp; while(N--){ string S; int C; cin >> S >> C; mp[S] = C; } int ans[8] = {}; for(auto &x : mp) ans[x.second]++; for(auto x : ans) cout << x << endl; }