CSES - COCI 2006/2007 #4 - Results
Submission details
Task:Skener
Sender:untokarila
Submission time:2019-07-25 13:59:55 +0300
Language:C++ (C++11)
Status:READY
Result:100
Feedback
groupverdictscore
#1ACCEPTED100
Test results
testverdicttime
#1ACCEPTED0.01 sdetails
#2ACCEPTED0.01 sdetails
#3ACCEPTED0.01 sdetails
#4ACCEPTED0.01 sdetails
#5ACCEPTED0.01 sdetails
#6ACCEPTED0.01 sdetails
#7ACCEPTED0.01 sdetails
#8ACCEPTED0.01 sdetails
#9ACCEPTED0.01 sdetails
#10ACCEPTED0.01 sdetails

Code

#include <bits/stdc++.h>

using namespace std;

int main(){
    int r, c, zr, zc;
    char a[50][50];
    cin >> r >> c >> zr >> zc;

    for(int i=0; i<r; i++){
        for(int j=0; j<c; j++){
            cin >> a[i][j];
        }
    }

    for(int i=0; i<r*zr; i++){
        for(int j=0; j<c*zc; j++){
            cout << a[i/zr][j/zc];
        }
        cout << '\n';
    }
    return 0;
}

Test details

Test 1

Verdict: ACCEPTED

input
1 5 5 1
.x.x.

correct output
.x.x.
.x.x.
.x.x.
.x.x.
.x.x.

user output
.x.x.
.x.x.
.x.x.
.x.x.
.x.x.

Test 2

Verdict: ACCEPTED

input
5 1 1 5
.
s
s
s
...

correct output
.....
sssss
sssss
sssss
.....

user output
.....
sssss
sssss
sssss
.....

Test 3

Verdict: ACCEPTED

input
10 15 2 3
...............
.xxxxxxxxxxxxxx
.x.t..o........
.x.......?.....
...

correct output
.................................

user output
.................................
Truncated

Test 4

Verdict: ACCEPTED

input
20 20 1 1
AAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDD
...

correct output
AAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDD
EEEEEEEEEEEEEEEEEEEE
...

user output
AAAAAAAAAAAAAAAAAAAA
BBBBBBBBBBBBBBBBBBBB
CCCCCCCCCCCCCCCCCCCC
DDDDDDDDDDDDDDDDDDDD
EEEEEE
...
Truncated

Test 5

Verdict: ACCEPTED

input
20 20 3 3
nwlrbbmqbhcdarzowkky
hiddqscdxrjmowfrxsjy
bldbefsarcbynecdyggx
xpklorellnmpapqfwkho
...

correct output
nnnwwwlllrrrbbbbbbmmmqqqbbbhhh...

user output
nnnwwwlllrrrbbbbbbmmmqqqbbbhhh...
Truncated

Test 6

Verdict: ACCEPTED

input
30 30 2 4
.................................

correct output
.................................

user output
.................................
Truncated

Test 7

Verdict: ACCEPTED

input
40 40 5 3
1011110011matrix00001011000111...

correct output
111000111111111111000000111111...

user output
111000111111111111000000111111...
Truncated

Test 8

Verdict: ACCEPTED

input
25 50 2 1
yyxyzyyxxyzyzyzyxxyyzzxxzzzyyy...

correct output
yyxyzyyxxyzyzyzyxxyyzzxxzzzyyy...

user output
yyxyzyyxxyzyzyzyxxyyzzxxzzzyyy...
Truncated

Test 9

Verdict: ACCEPTED

input
50 50 3 2
BBABCBBAABCBCBCBAABBCCAACCCBBB...

correct output
BBBBAABBCCBBBBAAAABBCCBBCCBBCC...

user output
BBBBAABBCCBBBBAAAABBCCBBCCBBCC...
Truncated

Test 10

Verdict: ACCEPTED

input
50 50 5 5
170757136154575460718866888411...

correct output
111117777700000777775555577777...

user output
111117777700000777775555577777...
Truncated