1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String num=scanner.nextLine().trim();
String[] name = num.split(" ");
if(num.isEmpty())
System.out.println(0);
else
System.out.println(name.length);
}}
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4f; text-decoration:none">Colored by Color Scripter
|
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none; color:white">cs |
백준 1152번 자바 성공코드
2019. 6. 20. 16:32