結果
問題 |
No.182 新規性の虜
|
ユーザー |
![]() |
提出日時 | 2016-01-17 02:08:16 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 288 bytes |
コンパイル時間 | 1,736 ms |
コンパイル使用メモリ | 164,692 KB |
実行使用メモリ | 7,964 KB |
最終ジャッジ日時 | 2024-12-26 20:08:53 |
合計ジャッジ時間 | 2,691 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 27 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); unsigned n,c; unordered_map<unsigned,unsigned> h; cin >> n; while(cin >> n) if(h[n]==0) {++c;h[n]++;}else if(h[n]==1){--c;h[n]++;}; cout << c << endl; }