using System; public class Program { static void Main() { string X = Console.ReadLine(); string Y = Console.ReadLine(); string S = "?"; int xl = X.Length; int yl = Y.Length; int arrayIndex; // 二つの文字数の差分を抽出 int xylen = Math.Abs(xl-yl); // 交互に文字列を作成できるか判定 if(xylen < 2) { // 奇数指定されているXの文字数がYの文字数以上か判定 if(xl >= yl) { // 規定の条件を満たすので出力文字列作成 S = ""; arrayIndex = 0; while(true) { if(arrayIndex < xl) S += X[arrayIndex]; if(arrayIndex < yl) S += Y[arrayIndex]; arrayIndex++; if(arrayIndex >= xl && arrayIndex >= yl) break; } } } Console.WriteLine(S); } }