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
|
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
//StringTokenizer st = new StringTokenizer(in.readLine());
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
String st1[] = new String[5];
char arr[][] = new char [15][15];
int i, j;
for (i = 0; i < 5; i++) {
st1[i] = in.readLine();
}
int len = 0;
for (j = 0; j < 15; j++) {
for (i = 0; i < 5; i++) {
if (st1[i].length() <= j) continue;
bw.write(String.format("%c", st1[i].charAt(j)));
bw.flush();
}
}
}
}
|
cs |
http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=2119&sca=2050
'정올문제소스코드' 카테고리의 다른 글
1516 : 단어 세기 (0) | 2021.10.08 |
---|---|
1880 : 암호풀기(Message Decoding) (0) | 2021.08.11 |
2514 : 문자열 찾기 (0) | 2021.08.11 |
2604 : 그릇 (0) | 2021.08.11 |
1740 : 소수 (0) | 2021.08.11 |