結果

問題 No.2728 Grid Expansion
ユーザー firiexp
提出日時 2024-05-14 08:15:58
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 697 bytes
コンパイル時間 826 ms
コンパイル使用メモリ 97,968 KB
最終ジャッジ日時 2025-02-21 13:59:38
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 15
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <numeric>
#include <bitset>
#include <cmath>
#include <limits>
#include <array>

static const int MOD = 998244353;
using ll = long long;
using uint = unsigned;
using ull = unsigned long long;
using namespace std;

template<class T> constexpr T INF = ::numeric_limits<T>::max() / 32 * 15 + 208;

string g[10];

int main() {
    int n, k;
    cin >> n >> k;
    for (int i = 0; i < n; ++i) {
        cin >> g[i];
    }
    for (int i = 0; i < n * k; ++i) {
        for (int j = 0; j < n * k; ++j) {
            cout << g[i/k][j/k];
        }
        cout << "\n";
    }
    return 0;
}
0