Task: | Magija |
Sender: | untokarila |
Submission time: | 2019-07-25 16:45:31 +0300 |
Language: | C++ (C++11) |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.01 s | details |
#2 | WRONG ANSWER | 0.01 s | details |
#3 | WRONG ANSWER | 0.01 s | details |
#4 | WRONG ANSWER | 0.01 s | details |
#5 | WRONG ANSWER | 0.01 s | details |
#6 | WRONG ANSWER | 0.01 s | details |
#7 | WRONG ANSWER | 0.01 s | details |
#8 | WRONG ANSWER | 0.01 s | details |
#9 | WRONG ANSWER | 0.01 s | details |
#10 | WRONG ANSWER | 0.01 s | details |
Code
#include <bits/stdc++.h> using namespace std; int main(){ char k[100][100]; int r, c, a, b; cin >> c >> r; for(int i=0; i<r; i++){ for(int j=0; j<c; j++) cin >> k[i][j]; } for(int i=0; i<r; i++){ for(int j=0; j<c; j++){ k[r+i][j] = k[r-i-1][j]; } } for(int i=0; i<r*2; i++){ for(int j=0; j<c; j++){ k[i][c+j] = k[i][c-j-1]; } } cin >> b >> a; a--; b--; if(k[a][b] == '.') k[a][b] = '#'; else k[a][b] = '.'; for(int i=0; i<r*2; i++){ for(int j=0; j<c*2; j++){ cout << k[i][j]; } cout << '\n'; } return 0; }
Test details
Test 1
Verdict: ACCEPTED
input |
---|
1 1
# 2 2 |
correct output |
---|
##
#. |
user output |
---|
## #. |
Test 2
Verdict: WRONG ANSWER
input |
---|
5 5
..... #.##. .#.#. ..#.# ... |
correct output |
---|
..........
#.##..##.# .#.#..#.#. ..#.##.#.. #..#..#..# ... |
user output |
---|
.......... #.##..#..# .#.#..#.#. ..#.##.#.. #..#..#..# ... Truncated |
Test 3
Verdict: WRONG ANSWER
input |
---|
10 10
..#.###.## #.......#. ....#..### .####..#.# ... |
correct output |
---|
..#.###.####.###.#..
#.......#..#.......# ....#..######..#.... .####..#.##.#..####. .##.#.#.....##.#.##. ... |
user output |
---|
..#.###.####.###.#.. #.......#..#.......# ....#..######..#.... .####..#.##.#..####. .##.#. ... Truncated |
Test 4
Verdict: WRONG ANSWER
input |
---|
20 20
######..###.#..####. #..#.#.##.#.#.###.#. #..##...#..#.#.#.#.# #####..#.##.#.#..##. ... |
correct output |
---|
######..###.#..####..####..#.#... |
user output |
---|
######..###.#..####..####..#.#... Truncated |
Test 5
Verdict: WRONG ANSWER
input |
---|
34 33
#.##..#.####..#.#.#.#..#.#.##.... |
correct output |
---|
#.##..#.####..#.#.#.#..#.#.##.... |
user output |
---|
#.##..#.####..#.#.#.#..#.#.##.... Truncated |
Test 6
Verdict: WRONG ANSWER
input |
---|
41 42
#.....#.#####..###...#.##...##... |
correct output |
---|
#.....#.#####..###...#.##...##... |
user output |
---|
#.....#.#####..###...#.##...##... Truncated |
Test 7
Verdict: WRONG ANSWER
input |
---|
42 14
##...#.#....## #....#.#.##..# .#.#..#.###### ...#..###..##. ... |
correct output |
---|
##...#.#....####....#.#...##
#....#.#.##..##..##.#.#....# .#.#..#.############.#..#.#. ...#..###..##..##..###..#... #.####.#####....#####.####.# ... |
user output |
---|
##...#.#....###....#.#.##..#.#... Truncated |
Test 8
Verdict: WRONG ANSWER
input |
---|
1 49
####.##.##..#####...#...#.##..... |
correct output |
---|
####.##.##..#####...#...#.##..... |
user output |
---|
## ## ## ## .. ... Truncated |
Test 9
Verdict: WRONG ANSWER
input |
---|
47 2
#. .# .# .. ... |
correct output |
---|
#..#
.##. .##. .... #..# ... |
user output |
---|
#..#.#..#....##..#....###...##... Truncated |
Test 10
Verdict: WRONG ANSWER
input |
---|
49 49
###..#.##..#.#####.###.####.##... |
correct output |
---|
###..#.##..#.#####.###.####.##... |
user output |
---|
###..#.##..#.#####.###.####.##... Truncated |