Submission #4028431
Source Code Expand
import numpy as np h,w=list(map(int,input().split())) n=[list(input())for i in range(h)] s=np.array(n) s=s.T s=s.tolist() s=[t for t in s if t!=["."]*h] k=len(s) p=np.array(s) p=p.T p=p.tolist() p=[t for t in p if t!=["."]*k] for i in range(len(p)): h=p[i] d=len(h) c="" for j in range(d): c+=h[j] print(c)
Submission Info
Submission Time | |
---|---|
Task | B - Grid Compression |
User | TKR18 |
Language | Python (3.4.3) |
Score | 200 |
Code Size | 356 Byte |
Status | AC |
Exec Time | 156 ms |
Memory | 12668 KB |
Judge Result
Set Name | Sample | All | ||||
---|---|---|---|---|---|---|
Score / Max Score | 0 / 0 | 200 / 200 | ||||
Status |
|
|
Set Name | Test Cases |
---|---|
Sample | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt |
All | 0_00.txt, 0_01.txt, 0_02.txt, 0_03.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
0_00.txt | AC | 149 ms | 12428 KB |
0_01.txt | AC | 152 ms | 12428 KB |
0_02.txt | AC | 151 ms | 12388 KB |
0_03.txt | AC | 150 ms | 12428 KB |
1_00.txt | AC | 154 ms | 12428 KB |
1_01.txt | AC | 154 ms | 12500 KB |
1_02.txt | AC | 155 ms | 12668 KB |
1_03.txt | AC | 156 ms | 12668 KB |
1_04.txt | AC | 154 ms | 12540 KB |
1_05.txt | AC | 154 ms | 12540 KB |
1_06.txt | AC | 153 ms | 12540 KB |
1_07.txt | AC | 152 ms | 12540 KB |