結果

問題 No.597 concat
ユーザー kichirb3
提出日時 2018-02-26 12:34:17
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 404 bytes
コンパイル時間 740 ms
コンパイル使用メモリ 67,824 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-22 12:00:54
合計ジャッジ時間 1,486 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

// No.597 concat
// https://yukicoder.me/problems/no/597
//
#include <iostream>
#include <sstream>
using namespace std;
string solve(int N);


int main() {
    int N;
    cin >> N;
    
    string res = solve(N);
    cout << res << endl;
}

string solve(int N) {
    stringstream ss;
    string tmp;
    for (auto i = 0; i < N; i++) {
        cin >> tmp;
        ss << tmp;
    }
    return ss.str();
}

0