結果

問題 No.3019 YNeos
ユーザー Jikky1618
提出日時 2025-09-13 00:50:10
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 617 bytes
コンパイル時間 3,168 ms
コンパイル使用メモリ 278,736 KB
実行使用メモリ 7,720 KB
最終ジャッジ日時 2025-09-13 00:50:16
合計ジャッジ時間 4,995 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 33 WA * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

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

#ifdef LOCAL
#include <debug.hpp>
#else
#define debug(...)
#endif

int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
    string X, Y;
    cin >> X >> Y;
    if (abs(ssize(X) - ssize(Y)) >= 2) {
        cout << "?" << "\n";
    } else {
        if (ssize(X) < ssize(Y)) swap(X, Y);
        string ans(ssize(X) + ssize(Y), '.');
        for (int i = 0; i < ssize(X); i++) ans[2 * i] = X[i];
        for (int i = 0; i < ssize(Y); i++) ans[2 * i + 1] = Y[i];
        cout << ans << "\n";
    }
}
0