제출 #635446

#제출 시각아이디문제언어결과실행 시간메모리
635446zeroesandones마라톤 경주 (COCI14_utrka)C++17
80 / 80
128 ms10480 KiB
#include "bits/stdc++.h" using namespace std; typedef long long ll; typedef long double ld; typedef vector<ll> vi; typedef pair<ll, ll> pi; #define FOR(i, j, k) for (ll i = j; i < (ll) k; ++i) #define FORD(i, j, k) for (ll i = j; i >= (ll) k; --i) #define nl "\n" #define all(x) (x).begin(), (x).end() #define sc second #define fr first #define pb push_back void solve() { int n; cin >> n; map<string, int> m; FOR(i, 0, n) { string s; cin >> s; ++m[s]; } FOR(i, 0, n - 1) { string s; cin >> s; --m[s]; } for(auto i : m) { if(i.sc) { cout << i.fr << nl; } } } signed main() { ios_base::sync_with_stdio(false); cin.tie(NULL); ll t = 1; // cin >> t; while (t--) { solve(); } }
#Verdict Execution timeMemoryGrader output
Fetching results...