結果
| 問題 |
No.2153 何コーダーが何人?
|
| コンテスト | |
| ユーザー |
hatsuka_iwa
|
| 提出日時 | 2023-11-12 20:41:13 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 4 ms / 2,000 ms |
| コード長 | 323 bytes |
| コンパイル時間 | 1,699 ms |
| コンパイル使用メモリ | 175,692 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-26 03:04:43 |
| 合計ジャッジ時間 | 2,435 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
int N; cin >> N;
vector<int> Color(8);
unordered_map<string, int> M;
for (int i = 0; i < N; i++) {
string S;
int C; cin >> S >> C;
M[S] = C;
}
for (pair<string, int> P : M) Color.at(P.second)++;
for (int C : Color) cout << C << endl;
}
hatsuka_iwa