Submission #2347529


Source Code Expand

main = do
  [a,b,x] <- (map read . words) <$> getLine
  putStrLn $ if (a <= x) && (x <= a+b) then "YES" else "NO"

Submission Info

Submission Time
Task A - Cats and Dogs
User wawktk2525
Language Haskell (GHC 7.10.3)
Score 100
Code Size 115 Byte
Status AC
Exec Time 2 ms
Memory 508 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 13
Set Name Test Cases
Sample sample1.txt, sample2.txt, sample3.txt
All sample1.txt, sample2.txt, sample3.txt, 1.txt, 2.txt, 3.txt, 4.txt, 5.txt, 6.txt, 7.txt, sample1.txt, sample2.txt, sample3.txt
Case Name Status Exec Time Memory
1.txt AC 2 ms 508 KiB
2.txt AC 2 ms 508 KiB
3.txt AC 2 ms 508 KiB
4.txt AC 2 ms 508 KiB
5.txt AC 1 ms 508 KiB
6.txt AC 2 ms 508 KiB
7.txt AC 2 ms 508 KiB
sample1.txt AC 2 ms 508 KiB
sample2.txt AC 1 ms 508 KiB
sample3.txt AC 2 ms 508 KiB