結果
問題 |
No.2153 何コーダーが何人?
|
ユーザー |
![]() |
提出日時 | 2023-05-23 10:31:01 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 5 ms / 2,000 ms |
コード長 | 290 bytes |
コンパイル時間 | 2,159 ms |
コンパイル使用メモリ | 203,032 KB |
最終ジャッジ日時 | 2025-02-13 04:11:42 |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 19 |
ソースコード
#include<bits/stdc++.h> using namespace std; int main() { int n; cin >> n; vector<int> cnt(8, 0); map<string, int> col; while (n--) { string s; int c; cin >> s >> c; if (col.count(s)) { cnt[col[s]]--; } col[s] = c; cnt[col[s]]++; } for (int x : cnt) cout << x << endl; }