【AtCoder Beginner Contest 073 C】Write and Erase
and Write Contest Atcoder
2023-09-14 09:03:49 时间
【链接】h在这里写链接
【题意】
在这里写题意
【题解】
在这里写题解
【错的次数】
0
【反思】
在这了写反思
【代码】
#include <bits/stdc++.h> using namespace std; const int N = 1e5; map <int, int> dic; int tot = 0; int main() { //freopen("F:\\rush.txt", "r", stdin); ios::sync_with_stdio(0); int n; cin >> n; for (int i = 1; i <= n; i++) { int x; cin >> x; dic[x] = 1 - dic[x]; if (dic[x] & 1) tot++; else tot--; } cout << tot << endl; return 0; }
相关文章
- some try on func swap about & and *
- Spring Batch Read from DB and Write to File
- AngularJS学习---REST和自定义服务(REST and Custom Services) ngResource step 11
- [React] Write a stateful Component with the React useState Hook and TypeScript
- [React Flow] Up and Running with Facebook Flow for Typed JavaScript
- [Cloud Architect] 5. Cost and Monitoring
- [React] Write a stateful Component with the React useState Hook and TypeScript
- [React] Create and import React components with Markdown using MDXC
- [Bash] View Files and Folders in Bash
- [Angular] Show a loading indicator in Angular using *ngIf/else, the as keyword and the async pipe
- Atitit.ati orm的设计and架构总结 适用于java c# php版
- 【Henu ACM Round#16 D】Bear and Two Paths
- 【Codeforces Round #442 (Div. 2) D】Olya and Energy Drinks
- SAP Fiori Elements的change and save实现原理
- Up-to-date cache with EclipseLink and Oracle
- leetcode 771. Jewels and Stones
- go map fatal error: concurrent map iteration and map write 读写锁与深度拷贝的坑