結果
問題 | No.2153 何コーダーが何人? |
ユーザー |
|
提出日時 | 2022-12-09 21:21:57 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 270 bytes |
コンパイル時間 | 2,218 ms |
コンパイル使用メモリ | 200,948 KB |
最終ジャッジ日時 | 2025-02-09 06:59:11 |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; map<string, int> mp; while(n--){ string s; int c; cin >> s >> c; mp[s] = c; } vector<int> cnt(8); for(auto&&[s, x] : mp) ++cnt[x]; for(auto&&e : cnt) cout << e << "\n"; }