Task: | Just Solve It |
Sender: | Omochiikaeri~! |
Submission time: | 2019-05-25 11:15:05 +0300 |
Language: | Haskell |
Status: | READY |
Result: | WRONG ANSWER |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.03 s | details |
#2 | WRONG ANSWER | 0.02 s | details |
#3 | ACCEPTED | 0.01 s | details |
#4 | ACCEPTED | 0.02 s | details |
#5 | ACCEPTED | 0.01 s | details |
#6 | ACCEPTED | 0.03 s | details |
#7 | ACCEPTED | 0.03 s | details |
#8 | ACCEPTED | 0.03 s | details |
Compiler report
input/code.hs:1:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: main :: IO () input/code.hs:4:15: warning: [-Wtype-defaults] * Defaulting the following constraints to type `Integer' (Num a0) arising from a use of `solve' at input/code.hs:4:15-23 (Ord a0) arising from a use of `solve' at input/code.hs:4:15-23 (Read a0) arising from a use of `read' at input/code.hs:3:22-25 * In the first argument of `putStrLn', namely `(solve n k)' In a stmt of a 'do' block: putStrLn (solve n k) In the expression: do { l <- getLine; let [n, k] = map read $ words l; putStrLn (solve n k) } input/code.hs:6:1: warning: [-Wmissing-signatures] Top-level binding with no type signature: solve :: (Num a, Ord a) => t -> a -> [Char] input/code.hs:6:7: warning: [-Wunused-matches] Defined but not used: `n'
Code
main = do l <- getLine let [n, k] = map read $ words l putStrLn (solve n k) solve n k = if k > 1 then "YES" else "NO"
Test details
Test 1
Verdict: ACCEPTED
input |
---|
3 1 |
correct output |
---|
NO |
user output |
---|
NO |
Test 2
Verdict: WRONG ANSWER
input |
---|
3 2 |
correct output |
---|
NO |
user output |
---|
YES |
Test 3
Verdict: ACCEPTED
input |
---|
3 3 |
correct output |
---|
YES |
user output |
---|
YES |
Test 4
Verdict: ACCEPTED
input |
---|
4 1 |
correct output |
---|
NO |
user output |
---|
NO |
Test 5
Verdict: ACCEPTED
input |
---|
4 2 |
correct output |
---|
YES |
user output |
---|
YES |
Test 6
Verdict: ACCEPTED
input |
---|
4 3 |
correct output |
---|
YES |
user output |
---|
YES |
Test 7
Verdict: ACCEPTED
input |
---|
123456 654321 |
correct output |
---|
YES |
user output |
---|
YES |
Test 8
Verdict: ACCEPTED
input |
---|
1000000000 1000000000 |
correct output |
---|
YES |
user output |
---|
YES |