Task: | Sudoku |
Sender: | |
Submission time: | 2015-08-16 16:23:58 +0300 |
Language: | Haskell |
Status: | READY |
Result: | 100 |
group | verdict | score |
---|---|---|
#1 | ACCEPTED | 100 |
test | verdict | time | |
---|---|---|---|
#1 | ACCEPTED | 0.05 s | details |
#2 | ACCEPTED | 0.05 s | details |
#3 | ACCEPTED | 0.06 s | details |
#4 | ACCEPTED | 0.06 s | details |
#5 | ACCEPTED | 0.05 s | details |
Compiler report
input/code.hs:4:1: Warning: Top-level binding with no type signature: lol :: [Char] input/code.hs:6:1: Warning: Top-level binding with no type signature: main :: IO () input/code.hs:10:1: Warning: Top-level binding with no type signature: f :: [Char] -> Char -> Char input/code.hs:10:3: Warning: Defined but not used: `a'
Code
import Data.List import Data.Char lol = "123456789\n456789123\n789123456\n214365897\n365897214\n897214365\n531642978\n642978531\n978531642" main = do x <- getLine putStrLn $ map (f x) lol f a '\n' = '\n' f a x = a !! (ord x - ord '1')
Test details
Test 1
Verdict: ACCEPTED
input |
---|
592836471 |
correct output |
---|
592836471 836471592 471592836 928364715 364715928 ... |
user output |
---|
592836471 836471592 471592836 958263714 263714958 ... |
Test 2
Verdict: ACCEPTED
input |
---|
672935418 |
correct output |
---|
672935418 935418672 418672935 729354186 354186729 ... |
user output |
---|
672935418 935418672 418672935 769253184 253184769 ... |
Test 3
Verdict: ACCEPTED
input |
---|
329174658 |
correct output |
---|
329174658 174658329 658329174 291746583 746583291 ... |
user output |
---|
329174658 174658329 658329174 231947586 947586231 ... |
Test 4
Verdict: ACCEPTED
input |
---|
376958421 |
correct output |
---|
376958421 958421376 421376958 769584213 584213769 ... |
user output |
---|
376958421 958421376 421376958 739685214 685214739 ... |
Test 5
Verdict: ACCEPTED
input |
---|
875694321 |
correct output |
---|
875694321 694321875 321875694 756943218 943218756 ... |
user output |
---|
875694321 694321875 321875694 786549213 549213786 ... |