結果
問題 | No.597 concat |
ユーザー | zaichu |
提出日時 | 2017-11-24 22:35:50 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 405 bytes |
コンパイル時間 | 1,344 ms |
コンパイル使用メモリ | 167,788 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-27 07:28:40 |
合計ジャッジ時間 | 1,859 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> using namespace std; template <typename T> T gcd(T x, T y) { if (y == 0) return x; return gcd(y, x % y); } template <typename T> T lcm(T x, T y) { if (x == 0 || y == 0) return 0; return x / gcd(x, y) * y; } int main() { int n; cin >> n; string S; string ans = ""; while (cin >> S) ans += S; cout << ans << endl; }