Logo
(追記) (追記ここまで)

27386번 - Class Field Trip 다국어

시간 제한메모리 제한제출정답맞힌 사람정답 비율
1 초 (추가 시간 없음) 1024 MB25522820090.090%

문제

Instructors ann and ben firmly believe that everything should be alphabetical, especially names. (They also don't believe in capital letters!) They take alphabetical order to such an extreme that they even order the letters of their names when listed together. For example, the last time they co-taught they listed the instructors as abennn! They are taking their classes on a class field trip, so they need to merge their lists of students. Fortunately, they each have their student lists in order, so merging the lists should be quick. If ann has john and amy in her class and ben has jack and jill in his class, their two lists would be ahjmnoy and acijjkll. The field trip list would be aachijjjkllmnoy.

Given ann's and ben's lists, produce the field trip list.

입력

Input consists of exactly two lines. Each line contains a string of from 1ドル$ to 100ドル$ lower case letters. These are ann's and ben's lists.

출력

Output a single string of lower case letters, which represents the merging of ann's and ben's lists.

제한

예제 입력 1

ahjmnoy
acijjkll

예제 출력 1

aachijjjkllmnoy

힌트

출처

ICPC > Regionals > North America > North America Qualification Contest > ICPC North America Qualifier 2022 C번

  • 문제를 만든 사람: Ben Reed
(追記) (追記ここまで)

출처

대학교 대회

  • 사업자 등록 번호: 541-88-00682
  • 대표자명: 최백준
  • 주소: 서울시 서초구 서초대로74길 29 서초파라곤 412호
  • 전화번호: 02-521-0487 (이메일로 연락 주세요)
  • 이메일: contacts@startlink.io
  • 통신판매신고번호: 제 2017-서울서초-2193 호

AltStyle によって変換されたページ (->オリジナル) /