結果

問題 No.597 concat
ユーザー Naoki00712
提出日時 2023-06-02 14:22:11
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 304 bytes
コンパイル時間 367 ms
コンパイル使用メモリ 28,928 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-12-28 15:34:42
合計ジャッジ時間 1,233 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 11
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>

int main()
{
	int N;
	scanf("%d", &N);

	int count = 0;
	char S[201];

	for (int i = 0; i < N; i++)
	{
		int len;
		char str[21];
		scanf("%s%n", &str, &len);
		
		for (int i = 0; i < len - 1; i++)
		{
			S[count] = str[i];
			count++;
		}
	}

	printf("%.*s", count, S);

	return 0;
}
0