結果

問題 No.565 回転拡大
ユーザー 6soukiti296soukiti29
提出日時 2017-09-08 23:16:48
言語 Nim
(2.0.2)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 1,027 bytes
コンパイル時間 2,902 ms
コンパイル使用メモリ 68,640 KB
実行使用メモリ 4,380 KB
最終ジャッジ日時 2023-09-12 15:08:58
合計ジャッジ時間 4,622 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,376 KB
testcase_01 AC 2 ms
4,380 KB
testcase_02 AC 2 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 2 ms
4,376 KB
testcase_05 AC 2 ms
4,376 KB
testcase_06 AC 2 ms
4,376 KB
testcase_07 AC 2 ms
4,376 KB
testcase_08 AC 2 ms
4,380 KB
testcase_09 AC 1 ms
4,380 KB
testcase_10 AC 2 ms
4,376 KB
testcase_11 AC 1 ms
4,376 KB
testcase_12 AC 1 ms
4,380 KB
testcase_13 AC 1 ms
4,380 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 2 ms
4,380 KB
testcase_16 AC 2 ms
4,376 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 2 ms
4,376 KB
testcase_19 AC 2 ms
4,376 KB
testcase_20 AC 1 ms
4,376 KB
testcase_21 AC 2 ms
4,376 KB
testcase_22 AC 2 ms
4,376 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 AC 2 ms
4,376 KB
testcase_25 AC 2 ms
4,376 KB
testcase_26 AC 2 ms
4,380 KB
testcase_27 AC 2 ms
4,380 KB
testcase_28 AC 2 ms
4,380 KB
testcase_29 AC 2 ms
4,376 KB
testcase_30 AC 2 ms
4,376 KB
testcase_31 AC 1 ms
4,376 KB
testcase_32 AC 1 ms
4,380 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sequtils,strutils
var
    R,K,H,W : int
    input : array[11, string]
    output : array[101, array[101, char]]
    
(R, K) = stdin.readline.split.map(parseInt)
(H, W) = stdin.readline.split.map(parseInt)
for i in 0..100:
    for j in 0..100:
        output[i][j] = 'a'
for h in 0..<H:
    input[h] = stdin.readline

for h in 0..<H:
    for w in 0..<W:
        for k in 0..<K:
            for k2 in 0..<K:
                output[h * K + k][w * K + k2] = input[h][w]
if R == 0:
    for h in 0..<H * K:
        echo output[h][0..<W * K].join("")
        
if R == 90:
    for h in 0..<W * K:
        var s : string = ""
        for w in countdown(H * K - 1, 0):
            s &= output[w][h]
        echo s
if R == 180:
    for h in countdown(H * K - 1, 0):
        var s : string = ""
        for w in countdown(W * K - 1,0):
            s &= output[h][w]
        echo s
if R == 270:
    for h in countdown(W * K - 1, 0):
        var s : string = ""
        for w in 0..<H * K:
            s &= output[w][h]
        echo s
0