【AtCoder ABC 075 A】One out of Three

【链接】 我是链接,点我呀:)
【题意】

在这里输入题意

【题解】

用map轻松搞定

【代码】

    #include <bits/stdc++.h>
    using namespace std;
     
    map <int, int> mmap;
     
    int main()
    {
    	for (int i = 0; i < 3; i++)
    	{
    		int x;
    		scanf("%d", &x);
    		mmap[x]++;
    	}
    	for (auto y : mmap)
    		if (y.second == 1)
    			printf("%d\n", y.first);
    	return 0;
    }
posted @ 2017-10-14 22:13  AWCXV  阅读(236)  评论(0编辑  收藏  举报