CSES - Datatähti 2023 alku - Results
Submission details
Task:Kortit
Sender:FenixHongell
Submission time:2022-10-31 14:03:02 +0200
Language:Node.js
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.11 sdetails
#20.11 sdetails
#30.11 sdetails
#40.11 sdetails
#50.11 sdetails
#60.11 sdetails

Code

const readline = require('readline').createInterface({
    input: process.stdin,
    output: process.stdout
  });
  
  readline.question('', n => {
    let num = parseInt(n);
    if (num == 1 || num == 0) {
        console.log("NO")
    } else if (num <= 26 && num > 0) {
        console.log("MAYBE")
    } else if (num > 26) {
        console.log("YES")
    }
    readline.close();
  });

Test details

Test 1

Verdict:

input
0

correct output
NO

user output
(empty)

Test 2

Verdict:

input
1

correct output
NO

user output
(empty)

Test 3

Verdict:

input
2

correct output
MAYBE

user output
(empty)

Test 4

Verdict:

input
26

correct output
MAYBE

user output
(empty)

Test 5

Verdict:

input
27

correct output
YES

user output
(empty)

Test 6

Verdict:

input
52

correct output
YES

user output
(empty)