結果

問題 No.597 concat
ユーザー マサマサ
提出日時 2022-02-08 21:52:18
言語 Java21
(openjdk 21)
結果
AC  
実行時間 128 ms / 2,000 ms
コード長 293 bytes
コンパイル時間 2,786 ms
コンパイル使用メモリ 73,536 KB
実行使用メモリ 56,124 KB
最終ジャッジ日時 2023-09-05 22:20:44
合計ジャッジ時間 5,599 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
56,056 KB
testcase_01 AC 124 ms
55,728 KB
testcase_02 AC 124 ms
55,732 KB
testcase_03 AC 125 ms
56,084 KB
testcase_04 AC 126 ms
55,852 KB
testcase_05 AC 123 ms
56,084 KB
testcase_06 AC 124 ms
55,868 KB
testcase_07 AC 128 ms
55,716 KB
testcase_08 AC 123 ms
56,124 KB
testcase_09 AC 124 ms
55,648 KB
testcase_10 AC 123 ms
55,812 KB
testcase_11 AC 122 ms
55,736 KB
testcase_12 AC 121 ms
56,080 KB
testcase_13 AC 124 ms
55,652 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		
		String str = "";
		for (int i = 0; i < n; i++) {
			String s = sc.next();
			str += s;
		}
		System.out.println(str);
		sc.close();
	}
}
0