結果

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

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int INF = 1e9 + 10;
const ll INFL = 4e18;

int main() {
    string X, Y;
    cin >> X >> Y;

    int d = ssize(X) - ssize(Y);

    if (d == 0) {
        for (int i = 0; i < ssize(X); i++) cout << X[i] << Y[i];
        cout << endl;
    } else if (d == 1) {
        cout << X[0];
        for (int i = 1; i < ssize(X); i++) cout << Y[i - 1] << X[i];
        cout << endl;
    } else {
        cout << "?" << endl;
    }
}
0