結果
| 問題 | No.2153 何コーダーが何人? |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-12-09 21:28:09 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 468 bytes |
| 記録 | |
| コンパイル時間 | 1,642 ms |
| コンパイル使用メモリ | 220,296 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2026-06-28 19:40:14 |
| 合計ジャッジ時間 | 2,461 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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;
}