Task: | Sanalista |
Sender: | Tobdu |
Submission time: | 2020-09-29 20:02:11 +0300 |
Language: | Java |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | RUNTIME ERROR | 0 |
test | verdict | time | |
---|---|---|---|
#1 | RUNTIME ERROR | 0.10 s | details |
#2 | RUNTIME ERROR | 0.10 s | details |
#3 | RUNTIME ERROR | 0.10 s | details |
Code
import java.util.*; class Problem { public static void main(String args[]) { Scanner input = new Scanner(System.in); int words_amount = input.nextInt(); int wweaol = 0; List<String> checked_chars = new ArrayList<String>(); for (int i=0; i<words_amount; i++) { String current_word = input.next(); boolean even_amount = false; if (current_word.length() % 2 == 0) { for (int j=0; j<current_word.length(); j++) { char current_character = current_word.charAt(j); int chars_found = 0; for (int k=j++; k<current_word.length(); k++) { if (current_word.charAt(k) == current_character) chars_found++; } if (chars_found % 2 == 0) { even_amount = true; } } if (even_amount) { wweaol++; } } } System.out.println(wweaol); } }
Test details
Test 1
Verdict: RUNTIME ERROR
input |
---|
1000 korvata sopimusaika nuhatartunta korttiautomaatti ... |
correct output |
---|
15 |
user output |
---|
(empty) |
Error:
Error: Could not find or load main class problem Caused by: java.lang.ClassNotFoundExcepti...
Test 2
Verdict: RUNTIME ERROR
input |
---|
1000 pub hansikaslokero erikoisvalmisteinen unijukka ... |
correct output |
---|
42 |
user output |
---|
(empty) |
Error:
Error: Could not find or load main class problem Caused by: java.lang.ClassNotFoundExcepti...
Test 3
Verdict: RUNTIME ERROR
input |
---|
1000 haapalastu toipumisaika mustalaiskieli taidelainaamo ... |
correct output |
---|
70 |
user output |
---|
(empty) |
Error:
Error: Could not find or load main class problem Caused by: java.lang.ClassNotFoundExcepti...