제출 #860057

#제출 시각아이디문제언어결과실행 시간메모리
860057QuackPhuc은행 (IZhO14_bank)C++14
0 / 100
0 ms348 KiB
#include<iostream> using namespace std; string solved() { int N; int M; cin>>N>>M; int array_N[N]; int array_M[M]; for(int i = 0; i < N; i++) cin>>array_N[i]; for(int i = 0; i < M; i++) cin>>array_M[i]; for(int i = 0; i < M ; i++) { for(int j = 0; j < M; j++) { if(array_M[j] == array_N[0] - array_M[i]) return "YES"; } } return "NO"; } int main() { cout<<solved(); return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...