| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 483990 | ktkerem | 마라톤 경주 (COCI14_utrka) | C++17 | 129 ms | 11208 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
ll _i=0;
#define ffn(x) _i=x
#define fora(y,x) for(ll y=_i;x>y;y++)
#define pb push_back
#define pf push_front
#define debu cout << "hello\n"
#define fi first
#define sec second
const ll limit =998244353;
const ll ous=1000005;
void solve(){
ll n;
cin >> n;
map<string , ll> mp;
fora(i,n){
string h;
cin >> h;
mp[h]++;
}
vector<ll> y;
for(auto j:mp){
y.pb(j.sec);
}
ffn(1);
fora(i , n){
string h;
cin >> h;
mp[h]++;
}
string ans;
ll s = 0;
for(auto j:mp){
if(j.sec != 2*y[s]){
ans = j.fi;
}
s++;
}
cout << ans ;
return;
}
int main(){
ios_base::sync_with_stdio(false);cin.tie(NULL);
ll t=1;
//cin >> t;
while(t--){
solve();
}
return 0;
}
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
