Task: | Skener |
Sender: | henrikaalto |
Submission time: | 2019-07-25 13:50:30 +0300 |
Language: | C++ (C++17) |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.01 s | details |
#2 | ACCEPTED | 0.01 s | details |
#3 | ACCEPTED | 0.01 s | details |
#4 | ACCEPTED | 0.01 s | details |
#5 | ACCEPTED | 0.01 s | details |
#6 | ACCEPTED | 0.01 s | details |
#7 | ACCEPTED | 0.01 s | details |
#8 | ACCEPTED | 0.01 s | details |
#9 | ACCEPTED | 0.01 s | details |
#10 | ACCEPTED | 0.01 s | details |
Code
#include <bits/stdc++.h> using namespace std; #define all(x) x.begin(), x.end() #define F first #define S second using pi=pair<int,int>; using ii=long long; int main() { int n, m, nx, mx; cin >> n >> m >> nx >> mx; for (int i = 0; i < n; ++i) { string s; for (int j = 0; j < m; ++j) { char c; cin >> c; for (int x = 0; x < mx; ++x) { s.push_back(c); } } for (int x = 1; x <= nx; ++x) cout << s << "\n"; } }
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 |