#include<bits/stdc++.h> using namespace std; int main () { int N, i, j = 0, k = 0; cin>>N; int S1[N], S2[N], S3[2*N]; for ( i = 0; i < N; i ++ ) cin>>S1[i]; for ( i = 0; i < N; i ++ ) cin>>S2[i]; i = 0; while ( i<N && j<N ) { if ( S1[i] < S2[j] ) S3[k++] = S1[i++]; else S3[k++] = S2[j++]; } cout<<S3[(2*N-1)/2]; }
by: 发表于:2017-12-13 10:32:23 顶(0) | 踩(0) 回复
??
回复评论