結果
問題 |
No.597 concat
|
ユーザー |
![]() |
提出日時 | 2017-11-24 22:35:37 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 416 bytes |
コンパイル時間 | 2,129 ms |
コンパイル使用メモリ | 166,136 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-11-27 07:28:19 |
合計ジャッジ時間 | 1,870 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 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 = ""; for (int i = 0; i < n; i++) ans += S; cout << ans << endl; }