CSES - Datatähti 2023 alku - Results
Submission details
Task:Kortit
Sender:ToVoid
Submission time:2022-11-05 14:41:18 +0200
Language:Rust
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.00 sdetails
#20.00 sdetails
#30.00 sdetails
#40.00 sdetails
#50.00 sdetails
#60.00 sdetails

Code

use std::io::{BufRead, BufReader};

fn main() {
    let mut input = BufReader::new(std::io::stdin());
    let mut line = "".to_string();
    input.read_line(&mut line).unwrap();
    let num: i32 = line.parse().unwrap();

    if num > 26 {
        println!("YES");
    } else if num <= 1 {
        println!("NO");
    } else {
        println!("MAYBE")
    }
}

Test details

Test 1

Verdict:

input
0

correct output
NO

user output
(empty)

Error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { ki...

Test 2

Verdict:

input
1

correct output
NO

user output
(empty)

Error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { ki...

Test 3

Verdict:

input
2

correct output
MAYBE

user output
(empty)

Error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { ki...

Test 4

Verdict:

input
26

correct output
MAYBE

user output
(empty)

Error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { ki...

Test 5

Verdict:

input
27

correct output
YES

user output
(empty)

Error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { ki...

Test 6

Verdict:

input
52

correct output
YES

user output
(empty)

Error:
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: ParseIntError { ki...