結果

問題 No.3019 YNeos
ユーザー karinohito
提出日時 2025-03-24 10:57:29
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 442 bytes
コンパイル時間 3,310 ms
コンパイル使用メモリ 276,120 KB
実行使用メモリ 7,324 KB
最終ジャッジ日時 2025-03-24 10:57:34
合計ジャッジ時間 4,925 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
	
	cin.tie(nullptr);
	ios::sync_with_stdio(false);

	string S,T;
	cin>>S>>T;
	string AN="";
	int N=max(S.size(),T.size());
	for(int i=0;i<N;i++){
		if(S.size()<=i){
			cout<<"?"<<endl;
			return 0;
		}
		AN.push_back(S[i]);
		if(T.size()<=i){
			if(S.size()>i+1){
				cout<<"?"<<endl;
				return 0;
			}
			break;
		}
		AN.push_back(T[i]);
	}
	cout<<AN<<endl;


}
0