結果

問題 No.3019 YNeos
ユーザー クロさん
提出日時 2025-04-09 11:15:59
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 391 bytes
コンパイル時間 2,002 ms
コンパイル使用メモリ 193,512 KB
実行使用メモリ 7,848 KB
最終ジャッジ日時 2025-04-09 11:16:03
合計ジャッジ時間 3,898 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
	string s, t;
	cin >> s >> t;
	if(abs(int(s.size()) - int(t.size())) > 1){
		cout << "?" << endl;
	}
	else{
		for(int i = 0; i < min(s.size(), t.size()); i++){
			cout << s[i] << t[i];
		}
		if(s.size() > t.size()){
			cout << s[s.size() - 1];
		}
		else if(s.size() < t.size()){
			cout << t[t.size() - 1];
		}
		cout << endl;
	}
}
0