| Task: | Kortit |
| Sender: | drvilepis |
| Submission time: | 2022-10-31 01:04:46 +0200 |
| Language: | Haskell |
| Status: | READY |
| Result: | 0 |
| group | verdict | score |
|---|---|---|
| #1 | WRONG ANSWER | 0 |
| test | verdict | time | |
|---|---|---|---|
| #1 | ACCEPTED | 0.00 s | details |
| #2 | ACCEPTED | 0.00 s | details |
| #3 | ACCEPTED | 0.00 s | details |
| #4 | ACCEPTED | 0.00 s | details |
| #5 | WRONG ANSWER | 0.00 s | details |
| #6 | ACCEPTED | 0.00 s | details |
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 > 32 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 `32' 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 > 32
In the expression:
if x > 32 then "YES" else if x > 1 then "MAYBE" else "NO"
In the first argument of `(.)', namely
`(\ x
-> if x > 32 then "YES" else if x > 1 then "MAYBE" else "NO")'
|
1 | main = interact $ (\x -> if x > 32 then "YES" else if x > 1 then "MAYBE" else "NO") . read . head . words
| ^^^^^^Code
main = interact $ (\x -> if x > 32 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: WRONG ANSWER
| input |
|---|
| 27 |
| correct output |
|---|
| YES |
| user output |
|---|
| MAYBE |
Test 6
Verdict: ACCEPTED
| input |
|---|
| 52 |
| correct output |
|---|
| YES |
| user output |
|---|
| YES |
