CSES - Datatähti 2023 alku - Results
Submission details
Task:Kortit
Sender:Turtleb01
Submission time:2022-10-31 00:56:35 +0200
Language:Node.js
Status:READY
Result:0
Feedback
groupverdictscore
#10
Test results
testverdicttime
#10.10 sdetails
#20.10 sdetails
#30.10 sdetails
#40.10 sdetails
#50.10 sdetails
#60.10 sdetails

Code

var readline = require('node:readline/promises');

var rl = readline.createInterface({
  input: process.stdin,
  output: process.stdout,
  terminal: false
});

function line() {
  return rl.question("");
}

(async ()=>{
  const cards = Number(await line());
  if(cards<2) console.log("NO");
  else if(cards>26) console.log("YES");
  else console.log("MAYBE");
  rl.close();
})();

Test details

Test 1

Verdict:

input
0

correct output
NO

user output
(empty)

Error:
internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'node:readl...

Test 2

Verdict:

input
1

correct output
NO

user output
(empty)

Error:
internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'node:readl...

Test 3

Verdict:

input
2

correct output
MAYBE

user output
(empty)

Error:
internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'node:readl...

Test 4

Verdict:

input
26

correct output
MAYBE

user output
(empty)

Error:
internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'node:readl...

Test 5

Verdict:

input
27

correct output
YES

user output
(empty)

Error:
internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'node:readl...

Test 6

Verdict:

input
52

correct output
YES

user output
(empty)

Error:
internal/modules/cjs/loader.js:818
  throw err;
  ^

Error: Cannot find module 'node:readl...