# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1022437 |
2024-07-13T13:46:13 Z |
AliHasanli |
Utrka (COCI14_utrka) |
C++17 |
|
112 ms |
11280 KB |
#include<bits/stdc++.h>
using namespace std;
int main()
{
int n;
cin>>n;
string a[2*n-1];
for(int i=0;i<2*n-1;i++)
cin>>a[i];
sort(a,a+n*2-1);
for(int i=0;i<2*n-1;i+=2)
if(a[i]!=a[i+1])cout<<a[i],exit(0);
cout<<a[2*n-2];
return 0;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
348 KB |
Output is correct |
2 |
Correct |
0 ms |
348 KB |
Output is correct |
3 |
Correct |
1 ms |
348 KB |
Output is correct |
4 |
Correct |
1 ms |
348 KB |
Output is correct |
5 |
Correct |
1 ms |
348 KB |
Output is correct |
6 |
Correct |
47 ms |
5712 KB |
Output is correct |
7 |
Correct |
85 ms |
8412 KB |
Output is correct |
8 |
Correct |
87 ms |
10324 KB |
Output is correct |
9 |
Correct |
112 ms |
11280 KB |
Output is correct |
10 |
Correct |
93 ms |
11164 KB |
Output is correct |