結果

問題 No.597 concat
コンテスト
ユーザー 大谷祐翔
提出日時 2025-11-26 11:08:40
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 495 bytes
コンパイル時間 786 ms
コンパイル使用メモリ 110,452 KB
実行使用メモリ 26,316 KB
最終ジャッジ日時 2025-11-26 11:08:45
合計ジャッジ時間 1,681 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #
raw source code

using System;
class Program
{
    static void Main(string[] args)
    {
        int wordCount = int.Parse(Console.ReadLine()!);
        string connect = "";

        if (wordCount == 1)
        {
            string word = Console.ReadLine()!;
            Console.WriteLine(word);
            return;
        }

        for (int i = 0; i < wordCount; i++)
        {
            string word = Console.ReadLine()!;
            connect += word;
        }

        Console.WriteLine(connect);
    }
}
0