9 solutions
-
0
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); sc.close(); String[] st = s.split(" "); int sum = 0 ; for (int i = 0; i < st.length; i++) { sum += st[i].length(); } System.out.println(sum); } }
- 1
Information
- ID
- 10
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 4
- Tags
- # Submissions
- 1122
- Accepted
- 548
- Uploaded By