結果

問題 No.597 concat
ユーザー thesis_or_diethesis_or_die
提出日時 2017-11-24 22:22:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 127 ms / 2,000 ms
コード長 488 bytes
コンパイル時間 5,343 ms
コンパイル使用メモリ 73,232 KB
実行使用メモリ 56,076 KB
最終ジャッジ日時 2023-08-18 04:39:54
合計ジャッジ時間 5,098 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,032 KB
testcase_01 AC 124 ms
55,876 KB
testcase_02 AC 124 ms
55,868 KB
testcase_03 AC 123 ms
56,076 KB
testcase_04 AC 124 ms
55,764 KB
testcase_05 AC 124 ms
55,600 KB
testcase_06 AC 127 ms
55,904 KB
testcase_07 AC 125 ms
55,756 KB
testcase_08 AC 123 ms
55,596 KB
testcase_09 AC 122 ms
55,804 KB
testcase_10 AC 121 ms
55,600 KB
testcase_11 AC 124 ms
56,056 KB
testcase_12 AC 124 ms
53,928 KB
testcase_13 AC 122 ms
55,696 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
import java.io.*;

public class Main{
    public static void main(String[] args){
        Main m = new Main();
        m.input();
        m.out();
    }

    int n;
    String s;
    public void input(){
        Scanner sc = new Scanner(System.in);
        n = sc.nextInt();
        s = sc.next();
        for(int i = 0; i < n - 1; i++){
            s = s + sc.next();
        }
        sc.close();
    }

    public void out(){
        System.out.println(s);
    }

}
0