結果

問題 No.597 concat
ユーザー thesis_or_diethesis_or_die
提出日時 2017-11-24 22:22:53
言語 Java21
(openjdk 21)
結果
AC  
実行時間 122 ms / 2,000 ms
コード長 488 bytes
コンパイル時間 2,160 ms
コンパイル使用メモリ 75,988 KB
実行使用メモリ 41,540 KB
最終ジャッジ日時 2024-05-05 10:58:32
合計ジャッジ時間 4,370 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
41,304 KB
testcase_01 AC 104 ms
40,204 KB
testcase_02 AC 106 ms
40,020 KB
testcase_03 AC 116 ms
41,208 KB
testcase_04 AC 119 ms
41,288 KB
testcase_05 AC 120 ms
41,264 KB
testcase_06 AC 122 ms
40,924 KB
testcase_07 AC 108 ms
40,136 KB
testcase_08 AC 115 ms
41,540 KB
testcase_09 AC 111 ms
41,000 KB
testcase_10 AC 112 ms
41,272 KB
testcase_11 AC 118 ms
41,348 KB
testcase_12 AC 100 ms
39,608 KB
testcase_13 AC 113 ms
41,132 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