CSES - Datatähti 2021 alku - Results
Submission details
Task:Sanalista
Sender:anton7r
Submission time:2020-10-09 19:47:17 +0300
Language:Rust
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.01 sdetails
#20.01 sdetails
#30.01 sdetails

Code

use std::env;

fn main() {
    let mut parilliset : i16 = 0;
    
    let args = env::args();
    let mut i = 0;

    for arg in args {
        if i != 0 {
            if arg.chars().count() % 2 == 0 {
                parilliset+=1;
            }
        }
        i+=1;
    }

    print!("{}", parilliset)
}

Test details

Test 1

Verdict:

input
1000
korvata
sopimusaika
nuhatartunta
korttiautomaatti
...

correct output
15

user output
0

Test 2

Verdict:

input
1000
pub
hansikaslokero
erikoisvalmisteinen
unijukka
...

correct output
42

user output
0

Test 3

Verdict:

input
1000
haapalastu
toipumisaika
mustalaiskieli
taidelainaamo
...

correct output
70

user output
0