import java.util.Scanner;
public class scanf4 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String input = scanner.nextLine();
String[] text = input.split(" ");
System.out.println(text.length);
}
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
117 ms |
13516 KB |
Output is correct |
2 |
Correct |
115 ms |
13124 KB |
Output is correct |
3 |
Correct |
123 ms |
12940 KB |
Output is correct |
4 |
Correct |
117 ms |
13256 KB |
Output is correct |
5 |
Correct |
120 ms |
13440 KB |
Output is correct |
6 |
Correct |
127 ms |
13300 KB |
Output is correct |
7 |
Correct |
119 ms |
13136 KB |
Output is correct |
8 |
Correct |
120 ms |
13596 KB |
Output is correct |
9 |
Correct |
124 ms |
13372 KB |
Output is correct |
10 |
Correct |
123 ms |
13136 KB |
Output is correct |