結果
問題 | No.8016 unordered_mapなるたけ落とすマン |
ユーザー |
![]() |
提出日時 | 2016-05-22 00:56:17 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 284 ms / 1,000 ms |
コード長 | 134 bytes |
コンパイル時間 | 1,774 ms |
コンパイル使用メモリ | 172,428 KB |
実行使用メモリ | 9,728 KB |
最終ジャッジ日時 | 2024-10-11 05:04:56 |
合計ジャッジ時間 | 15,876 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 48 |
ソースコード
#include <bits/stdc++.h> using namespace std;int main(){long n,a;map<long,int>r;for(cin>>n>>a;cin>>a;--n<0?cout<<r[a]<<' ',0:++r[a]);}