結果
| 問題 | No.2728 Grid Expansion |
| コンテスト | |
| ユーザー |
Maeda
|
| 提出日時 | 2025-03-27 18:00:28 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 549 bytes |
| 記録 | |
| コンパイル時間 | 113 ms |
| コンパイル使用メモリ | 37,956 KB |
| 最終ジャッジ日時 | 2026-02-22 13:27:32 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | TLE * 1 -- * 2 |
| other | -- * 15 |
ソースコード
#include <stdio.h>
#include <string.h>
void main(void){
int n,k;
scanf("%d %d",&n,&k);
char pattern[n*k][15] = {};
for(int i = 0 ; i < n*k ; i+k){
scanf("%s",pattern[i]);
for(int j = 1;j < k-1 ; j++){
strcpy(pattern[i+j],pattern[i]);
}
}
for(int i = 0 ; i < n*k ; i++){
for(int j = 0 ; j < n ; j++ ){
int count = 0;
while(count < k){
printf("%c",pattern[i][j]);
count++;
}
}
printf("\n");
}
}
Maeda