結果

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

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
using ll=long long;
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
template<class T> bool chmax(T &a, T b){if (a < b){a = b;return true;} else return false;}
template<class T> bool chmin(T &a, T b){if (a > b){a = b;return true;} else return false;}

int main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    string X,Y;
    cin>>X>>Y;
    int N=X.size(),M=Y.size();
    if(N==M||N==M+1){
        for(int i=0;i<N+M;i++){
            if(i%2==0)cout<<X[i/2];
            else cout<<Y[i/2];
        }
        cout<<"\n";
    }else{
        cout<<"?\n";
    }
}
0