結果

問題 No.3019 YNeos
ユーザー Jikky1618
提出日時 2025-09-13 00:53:22
言語 C++23
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 1,000 ms
コード長 593 bytes
コンパイル時間 3,018 ms
コンパイル使用メモリ 276,132 KB
実行使用メモリ 7,716 KB
最終ジャッジ日時 2025-09-13 00:53:27
合計ジャッジ時間 5,059 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 41
権限があれば一括ダウンロードができます

ソースコード

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 (ssize(X) - ssize(Y) > 1 || ssize(X) - ssize(Y) < 0) {
        cout << "?" << "\n";
    } else {
        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