結果
| 問題 |
No.597 concat
|
| コンテスト | |
| ユーザー |
giusto_program
|
| 提出日時 | 2017-11-24 22:25:26 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 239 bytes |
| コンパイル時間 | 129 ms |
| コンパイル使用メモリ | 22,400 KB |
| 実行使用メモリ | 5,248 KB |
| 最終ジャッジ日時 | 2024-11-27 07:21:56 |
| 合計ジャッジ時間 | 634 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:8:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
8 | scanf("%d", &n);
| ~~~~~^~~~~~~~~~
main.cpp:10:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
10 | scanf("%s", s[i]);
| ~~~~~^~~~~~~~~~~~
ソースコード
#include<cstdio>
int main()
{
int n;
char s[15][25];
scanf("%d", &n);
for (int i = 0; i < n; i++) {
scanf("%s", s[i]);
}
for (int i = 0; i < n; i++) {
printf("%s", s[i]);
}
printf("\n");
}
giusto_program