結果

問題 No.597 concat
ユーザー shinwisteriashinwisteria
提出日時 2018-02-15 22:49:31
言語 Java19
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 376 bytes
コンパイル時間 4,841 ms
コンパイル使用メモリ 71,996 KB
実行使用メモリ 56,644 KB
最終ジャッジ日時 2023-08-28 15:27:10
合計ジャッジ時間 6,540 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
53,992 KB
testcase_01 AC 120 ms
56,080 KB
testcase_02 AC 120 ms
56,340 KB
testcase_03 AC 120 ms
56,044 KB
testcase_04 AC 121 ms
55,784 KB
testcase_05 AC 121 ms
55,596 KB
testcase_06 AC 121 ms
56,644 KB
testcase_07 AC 121 ms
55,712 KB
testcase_08 AC 119 ms
56,552 KB
testcase_09 AC 119 ms
56,580 KB
testcase_10 AC 119 ms
55,424 KB
testcase_11 AC 121 ms
55,432 KB
testcase_12 AC 120 ms
55,488 KB
testcase_13 AC 120 ms
55,952 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