結果
問題 | No.182 新規性の虜 |
ユーザー |
|
提出日時 | 2024-12-02 15:34:38 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 46 ms / 5,000 ms |
コード長 | 375 bytes |
コンパイル時間 | 1,964 ms |
コンパイル使用メモリ | 198,176 KB |
最終ジャッジ日時 | 2025-02-26 10:36:19 |
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
外部呼び出し有り |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 27 |
コンパイルメッセージ
main.cpp: In function ‘int main()’: main.cpp:25:28: warning: ignoring return value of ‘int system(const char*)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 25 | int main() { solve();system("pause"); } | ~~~~~~^~~~~~~~~
ソースコード
#include <bits/stdc++.h> using namespace std; typedef int64_t ll; void solve() { cin.tie(nullptr); ios::sync_with_stdio(false); ll n; cin>>n; unordered_map<ll,ll> mp; for(ll i=0;i<n;i++){ ll a; cin>>a; mp[a]++; } ll cnt=0; for(auto p:mp){ if(p.second==1){ cnt++; } } cout<<cnt<<endl; } int main() { solve();system("pause"); }