답안 #201308

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
201308 2020-02-10T07:28:30 Z ArKCa 마라톤 경주 (COCI14_utrka) C++17
0 / 80
5 ms 256 KB
#include<bits/stdc++.h>
#define  f1   first
#define  s2   second
#define  pb   push_back
#define  pob  pop_back
#define  int  ll
#define  ll   long long 
#define  PII  pair<int,int> 
#define  N    11

using namespace std;


int n,a,last,b;
int dizi[N];
map<string,int>m;
map<string,int>::iterator it;
string s;

int32_t main(){
	// freopen("a.gir","r",stdin);
	// freopen("a.cik","w",stdout);
	scanf("%lld",&n);
	for(int i=1;i<=n;i++){
		cin>>s;
		m[s]++;
	}
	for(int i=1;i<n;i++){
		cin>>s;
		m[s]++;
	}
	for(it=m.begin();it!=m.end();it++){
		if(it->s2%=1){
			cout<<it->f1<<endl;
			return 0;
		}
	}
}

Compilation message

utrka.cpp: In function 'int32_t main()':
utrka.cpp:23:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld",&n);
  ~~~~~^~~~~~~~~~~
# 결과 실행 시간 메모리 Grader output
1 Incorrect 5 ms 256 KB Output isn't correct
2 Halted 0 ms 0 KB -