码迷,mamicode.com
首页 > 移动开发 > 详细

【小米oj】 找出单独出现的数字

时间:2019-05-05 19:27:46      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:color   pre   style   include   its   amp   col   main   scan   

 1 #include <bits/stdc++.h>
 2 
 3 using namespace std;
 4 
 5 int n,x;
 6 map<int,int>mp;
 7 int main()
 8 {
 9     while(~scanf("%d",&x)){
10         mp[x]++;
11     }
12     for(auto i:mp){
13         if(i.second==1)printf("%d\n",i.first);
14     }
15     return 0;
16 }

 

【小米oj】 找出单独出现的数字

标签:color   pre   style   include   its   amp   col   main   scan   

原文地址:https://www.cnblogs.com/dogenya/p/10815571.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!