結果

問題 No.597 concat
ユーザー bellbell
提出日時 2021-02-21 15:43:28
言語 Java21
(openjdk 21)
結果
AC  
実行時間 143 ms / 2,000 ms
コード長 329 bytes
コンパイル時間 3,274 ms
コンパイル使用メモリ 76,396 KB
実行使用メモリ 57,716 KB
最終ジャッジ日時 2023-10-19 17:27:34
合計ジャッジ時間 5,845 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 137 ms
57,408 KB
testcase_01 AC 134 ms
57,436 KB
testcase_02 AC 133 ms
57,632 KB
testcase_03 AC 137 ms
57,580 KB
testcase_04 AC 140 ms
57,716 KB
testcase_05 AC 143 ms
57,364 KB
testcase_06 AC 135 ms
57,480 KB
testcase_07 AC 137 ms
57,212 KB
testcase_08 AC 136 ms
57,688 KB
testcase_09 AC 139 ms
57,552 KB
testcase_10 AC 136 ms
57,488 KB
testcase_11 AC 141 ms
57,140 KB
testcase_12 AC 140 ms
57,504 KB
testcase_13 AC 141 ms
57,480 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

	import java.util.*;

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

			System.out.println(ans);
			sc.close();
		}
	}
0