結果
| 問題 | 
                            No.3019 YNeos
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2025-04-10 02:42:43 | 
| 言語 | C++17  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 5 ms / 1,000 ms | 
| コード長 | 474 bytes | 
| コンパイル時間 | 709 ms | 
| コンパイル使用メモリ | 67,260 KB | 
| 実行使用メモリ | 7,844 KB | 
| 最終ジャッジ日時 | 2025-04-10 02:42:46 | 
| 合計ジャッジ時間 | 2,737 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 3 | 
| other | AC * 41 | 
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main() {
    string x, y;
    cin >> x >> y;
    if (x.length() < y.length() || x.length() > y.length() + 1) {
        cout << "?" << endl;
    } else {
        string result = "";
        for (size_t i = 0; i < max(x.length(), y.length()); ++i) {
            if (i < x.length()) result += x[i];
            if (i < y.length()) result += y[i];
        }
        cout << result << endl;
    }
    return 0;
}