結果

問題 No.3019 YNeos
ユーザー eve__fuyuki
提出日時 2025-02-14 22:42:43
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 479 bytes
コンパイル時間 1,911 ms
コンパイル使用メモリ 194,308 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2025-02-14 22:42:56
合計ジャッジ時間 3,247 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>

using namespace std;

void fast_io() {
	ios::sync_with_stdio(false);
	std::cin.tie(nullptr);
}

int main() {
	fast_io();
	string x, y;
	cin >> x >> y;
	if (x.size() == y.size()) {
		int n = x.size();
		for (int i = 0; i < n; i++) {
			cout << x[i] << y[i];
		}
		cout << endl;
	} else if (x.size() == y.size() + 1) {
		int n = y.size();
		for (int i = 0; i < n; i++) {
			cout << x[i] << y[i];
		}
		cout << x[n] << endl;
	} else {
		cout << "?\n";
	}
}
0