結果

問題 No.597 concat
ユーザー shinwisteriashinwisteria
提出日時 2018-02-15 22:54:54
言語 Java19
(openjdk 21)
結果
AC  
実行時間 120 ms / 2,000 ms
コード長 375 bytes
コンパイル時間 2,951 ms
コンパイル使用メモリ 72,872 KB
実行使用メモリ 56,700 KB
最終ジャッジ日時 2023-08-28 15:34:37
合計ジャッジ時間 5,422 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
56,032 KB
testcase_01 AC 119 ms
55,892 KB
testcase_02 AC 120 ms
55,480 KB
testcase_03 AC 118 ms
55,948 KB
testcase_04 AC 119 ms
56,700 KB
testcase_05 AC 117 ms
56,116 KB
testcase_06 AC 118 ms
55,924 KB
testcase_07 AC 119 ms
55,948 KB
testcase_08 AC 118 ms
55,984 KB
testcase_09 AC 117 ms
55,832 KB
testcase_10 AC 118 ms
56,152 KB
testcase_11 AC 118 ms
55,892 KB
testcase_12 AC 118 ms
55,828 KB
testcase_13 AC 117 ms
56,148 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Concat {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		String str = "",add = "";
		for(int i = 0;i < N;i++){
			add = s.next();
			str = str.concat(add);
		}
		s.close();
		System.out.println(str);

	}

}
0