結果
問題 |
No.597 concat
|
ユーザー |
![]() |
提出日時 | 2017-12-24 00:00:44 |
言語 | C (gcc 13.3.0) |
結果 |
RE
|
実行時間 | - |
コード長 | 367 bytes |
コンパイル時間 | 122 ms |
コンパイル使用メモリ | 29,440 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-17 16:54:59 |
合計ジャッジ時間 | 1,040 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 8 RE * 3 |
ソースコード
#include <string.h> #include <stdio.h> #define REP(a) for(i = 0; i < a; i++) int compare(const void *a,const void *b) { return *(int*)a - *(int*)b; } int main(void) { char s[30]; int a,i; scanf("%d",&a); char t[a][30]; REP(a) { scanf("%s",t[i]); } REP(a) { strcat(s, t[i]); } printf("%s\n",s); return 0; }