CSES - Datatähti 2023 alku - Results
Submission details
Task:Kortit
Sender:drvilepis
Submission time:2022-10-31 01:05:58 +0200
Language:Haskell
Status:READY
Result:100
Feedback
groupverdictscore
#1ACCEPTED100
Test results
testverdicttime
#1ACCEPTED0.00 sdetails
#2ACCEPTED0.00 sdetails
#3ACCEPTED0.00 sdetails
#4ACCEPTED0.00 sdetails
#5ACCEPTED0.00 sdetails
#6ACCEPTED0.00 sdetails

Compiler report

input/code.hs:1:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature: main :: IO ()
  |
1 | main = interact $ (\x -> if x > 26 then "YES" else if x > 1 then "MAYBE" else "NO") . read . head . words
  | ^^^^

input/code.hs:1:29: warning: [-Wtype-defaults]
    * Defaulting the following constraints to type `Integer'
        (Ord a0) arising from a use of `>' at input/code.hs:1:29-34
        (Num a0) arising from the literal `26' at input/code.hs:1:33-34
        (Read a0) arising from a use of `read' at input/code.hs:1:87-90
    * In the expression: x > 26
      In the expression:
        if x > 26 then "YES" else if x > 1 then "MAYBE" else "NO"
      In the first argument of `(.)', namely
        `(\ x
            -> if x > 26 then "YES" else if x > 1 then "MAYBE" else "NO")'
  |
1 | main = interact $ (\x -> if x > 26 then "YES" else if x > 1 then "MAYBE" else "NO") . read . head . words
  |                             ^^^^^^

Code

main = interact $ (\x -> if x > 26 then "YES" else if x > 1 then "MAYBE" else "NO") . read . head . words

Test details

Test 1

Verdict: ACCEPTED

input
0

correct output
NO

user output
NO

Test 2

Verdict: ACCEPTED

input
1

correct output
NO

user output
NO

Test 3

Verdict: ACCEPTED

input
2

correct output
MAYBE

user output
MAYBE

Test 4

Verdict: ACCEPTED

input
26

correct output
MAYBE

user output
MAYBE

Test 5

Verdict: ACCEPTED

input
27

correct output
YES

user output
YES

Test 6

Verdict: ACCEPTED

input
52

correct output
YES

user output
YES