結果

問題 No.3019 YNeos
ユーザー ooaiu
提出日時 2025-07-12 08:34:08
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 362 bytes
コンパイル時間 3,240 ms
コンパイル使用メモリ 275,612 KB
実行使用メモリ 7,844 KB
最終ジャッジ日時 2025-07-12 08:34:13
合計ジャッジ時間 5,108 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int main() {
	std::ios_base::sync_with_stdio(false);
	std::cin.tie(nullptr);
	string X, Y;
	cin >> X >> Y;
	int N = X.size(), M = Y.size();
	if(0 <= N - M && N - M <= 1) {
		cout << X[0];
		for(int i = 0; i < M; i++) {
			cout << Y[i];
			if(i+1<N)cout << X[i+1];
		}
		cout << endl;
	} else {
		cout << "?\n";
	}
}
0