mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-11 11:36:59 +07:00
16 lines
353 B
Java
16 lines
353 B
Java
// "Replace with sum()" "true"
|
|
|
|
import java.io.BufferedReader;
|
|
import java.io.IOException;
|
|
|
|
public class Main {
|
|
void test(BufferedReader br) throws IOException {
|
|
String line = "";
|
|
long count = 0;
|
|
wh<caret>ile((line = br.readLine()) != null) {
|
|
line = line.trim();
|
|
count+=line.length();
|
|
}
|
|
System.out.println(count);
|
|
}
|
|
} |