結果

問題 No.597 concat
ユーザー fabled2468fabled2468
提出日時 2018-09-28 23:37:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 567 bytes
コンパイル時間 6,636 ms
コンパイル使用メモリ 73,900 KB
実行使用メモリ 56,152 KB
最終ジャッジ日時 2023-08-02 12:11:15
合計ジャッジ時間 6,046 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,068 KB
testcase_01 AC 119 ms
56,048 KB
testcase_02 AC 120 ms
55,880 KB
testcase_03 AC 123 ms
55,988 KB
testcase_04 AC 122 ms
56,092 KB
testcase_05 AC 122 ms
55,504 KB
testcase_06 AC 121 ms
55,732 KB
testcase_07 AC 121 ms
55,728 KB
testcase_08 AC 120 ms
56,152 KB
testcase_09 AC 120 ms
56,080 KB
testcase_10 AC 119 ms
56,112 KB
testcase_11 AC 124 ms
55,728 KB
testcase_12 AC 124 ms
56,044 KB
testcase_13 AC 119 ms
55,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.ArrayList;
import java.util.Scanner;

public class No597_Concat {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int count = scan.nextInt();
        ArrayList list = new ArrayList<>();
        for (int i = 0; i < count; i++) {
            list.add(scan.next());
        }
        scan.close();

        StringBuilder result = new StringBuilder();

        for (int i = 0; i < count; i++) {
            result.append(list.get(i));
        }

        System.out.println(result.toString());
    }
}
0