# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
9560 |
2014-09-28T07:16:30 Z |
myungwoo |
Zu (kriii2_Z) |
C++14 |
|
0 ms |
1084 KB |
#include <stdio.h>
int N, M, R, C;
char A[55][55];
int main()
{
int i, j, k, l;
scanf("%d%d", &N, &M);
R = N*6-1, C = M*6-1;
for (i=0;i<R;i++) scanf("%s", A[i]);
for (i=0;i<M;i++){
for (j=0;j<N;j++){
int sy = j*6, ey = j*6+5;
int sx = (M-i-1)*6, ex = (M-i-1)*6+5;
int cnt = 0;
for (k=sy;k<ey;k++) for (l=sx;l<ex;l++) if (A[k][l] == '.') cnt++;
char c = 'z';
if (cnt == 7) c = 'a';
if (cnt == 9) c = 'b';
if (cnt == 5) c = 'c';
if (cnt == 25) c = '_';
printf("%c", c);
}
puts("");
}
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
0 ms |
1084 KB |
futex (syscall #202) was called by the program (disallowed syscall) |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Halted |
0 ms |
0 KB |
- |