結果
| 問題 |
No.597 concat
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2017-11-24 22:35:43 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 395 bytes |
| コンパイル時間 | 511 ms |
| コンパイル使用メモリ | 56,468 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-27 07:28:38 |
| 合計ジャッジ時間 | 969 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 11 |
ソースコード
#include <iostream>
#include <string>
using namespace std;
int main(){
string sent1, sent2, sent3;
int n;
cin >> n;
for(int i = 0; i < n; i++){
cin >> sent1;
if(n == 1){
cout << sent1;
}
else if(i == 0) sent2 = sent1;
else if(i > 0){
sent2 += sent1;
}
}
cout << sent2 << endl;
return 0;
}