結果
問題 | No.2153 何コーダーが何人? |
ユーザー |
|
提出日時 | 2022-12-09 21:28:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 2,000 ms |
コード長 | 468 bytes |
コンパイル時間 | 2,164 ms |
コンパイル使用メモリ | 202,556 KB |
最終ジャッジ日時 | 2025-02-09 07:17:39 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long ll; using namespace std; int main() { cin.tie(0)->sync_with_stdio(0); int N; cin >> N; map<string, int> mp; rep(i, N) { string S; int C; cin >> S >> C; mp[S] = C; } vector<int> cnt(8); for (auto &p : mp) { cnt[p.second]++; } for (int a : cnt) { cout << a << "\n"; } return 0; }