結果
問題 | No.2728 Grid Expansion |
ユーザー |
![]() |
提出日時 | 2024-04-04 22:44:53 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 498 bytes |
コンパイル時間 | 1,322 ms |
コンパイル使用メモリ | 98,668 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-01 00:38:24 |
合計ジャッジ時間 | 1,766 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 15 |
ソースコード
#include <iostream>#include <vector>#include <string>#include <ranges>signed main() {int n, k; std::cin >> n >> k;std::vector<std::string> a(n);for(auto& row : a) std::cin >> row;const auto rk = std::views::iota(0, k);for(const auto& row : a) {for([[maybe_unused]] const int _ : rk) {for(const auto v : row) {for([[maybe_unused]] const int _ : rk) std::cout << v;}std::cout << "\n";}}}