Task: | Sanalista |
Sender: | anton7r |
Submission time: | 2020-10-09 20:20:43 +0300 |
Language: | Rust |
Status: | READY |
Result: | 0 |
group | verdict | score |
---|---|---|
#1 | WRONG ANSWER | 0 |
test | verdict | time | |
---|---|---|---|
#1 | WRONG ANSWER | 0.01 s | details |
#2 | WRONG ANSWER | 0.01 s | details |
#3 | WRONG ANSWER | 0.01 s | details |
Code
use std::io; fn main() { let mut parilliset : i16 = 0; let mut iteraatiot_str = String::new(); io::stdin().read_line(&mut iteraatiot_str) .expect("fail"); let iteraatiot : i32 = iteraatiot_str.trim().parse::<i32>().unwrap(); for _ in 0 .. iteraatiot { let mut syote = String::new(); io::stdin().read_line(&mut syote) .expect("fail"); if syote.chars().count() % 2 == 0 { parilliset+=1; } } print!("{}", parilliset) }
Test details
Test 1
Verdict: WRONG ANSWER
input |
---|
1000 korvata sopimusaika nuhatartunta korttiautomaatti ... |
correct output |
---|
15 |
user output |
---|
496 |
Test 2
Verdict: WRONG ANSWER
input |
---|
1000 pub hansikaslokero erikoisvalmisteinen unijukka ... |
correct output |
---|
42 |
user output |
---|
496 |
Test 3
Verdict: WRONG ANSWER
input |
---|
1000 haapalastu toipumisaika mustalaiskieli taidelainaamo ... |
correct output |
---|
70 |
user output |
---|
448 |