結果

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

ソースコード

diff #

#include <iostream>
#include <cstdint>

using namespace std;

int main()
{
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	
	uint32_t i;
	string X[2];
	X[0].reserve(100), X[1].reserve(100), cin >> X[0] >> X[1];

	if (X[0].size() != X[1].size() && X[0].size() != X[1].size() + 1)
		cout << "?\n";
	else
	{
		for (i = 0; (i >> 1) != X[i & 1].size(); ++i)
			cout << X[i & 1][i >> 1];
		cout << '\n';
	}

	return 0;
}
0