結果
| 問題 |
No.2153 何コーダーが何人?
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-12-20 23:33:39 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 37 ms / 2,000 ms |
| コード長 | 330 bytes |
| コンパイル時間 | 848 ms |
| コンパイル使用メモリ | 82,840 KB |
| 最終ジャッジ日時 | 2025-02-09 17:28:40 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
#include <iostream>
#include <vector>
#include <map>
using namespace std;
int main(){
int n;cin>>n;
map<string,int> A;
for(int i = 0; n > i; i++){
string s;int t;cin>>s>>t;
A[s] = t;
}
vector<int> ans(8);
for(auto x: A){
ans[x.second]++;
}
for(int i = 0; 8 > i; i++){
cout << ans[i] << endl;
}
}