# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
339837 | shivam_327 | Utrka (COCI14_utrka) | C++14 | 284 ms | 10348 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define ff first
#define ss second
#define vi vector<int>
#define vll vector<ll>
#define vii vector<pair<int,int>>
#define vlll vector<pair<ll,ll>>
#define all(x) x.begin(),x.end()
#define TESTCASES ll t;cin>>t;while(t--)
using namespace std;
int main()
{
ll n;cin>>n;string s;map<string,ll> cnt;
for(int i=1;i<=2*n-1;i++)
{cin>>s;cnt[s]++;}
for(auto x:cnt)
{if(x.second%2){cout<<x.first;return 0;}}
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |