-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathP17363.cpp
58 lines (55 loc) · 975 Bytes
/
P17363.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<algorithm>
#include<stdio.h>
using namespace std;
#define FOR(i, n) for(int i = 0 ; i < n ; i++)
#define MAXX 9876543987654321LL
int N, M;
char board[101][101];
char milk[101][101];
char B_[9] = { "|-\\/<v>^" };
int main() {
//char c = '|';
//printf("%c",c);
scanf("%d %d", &N, &M);
for (int i = 0; i < N; i++)
scanf("%s", board[i]);
for (int i = 0; i < M; i++) {
for (int j = 0; j < N; j++) {
milk[i][j] = board[j][M-i-1];
}
}
//printf("%d\n", '\\');
for (int i = 0; i < M; i++, printf("\n"))
for (int j = 0; j < N; j++) {
char& t = milk[i][j];
switch (t) {
case '-':
t = '|';
break;
case '|':
t = '-';
break;
case '/':
t = '\\';
break;
case '\\':
t = '/';
break;
case '^':
t = '<';
break;
case '<':
t = 'v';
break;
case 'v':
t = '>';
break;
case '>':
t = '^';
break;
}
printf("%c", t);
}
}