Submission #59573839


Source Code Expand

main=interact(\(a:b:c:_)->[b,c,a,' ',c,a,b])

Submission Info

Submission Time
Task A - Cyclic
User cojna
Language Haskell (GHC 9.4.5)
Score 100
Code Size 44 Byte
Status AC
Exec Time 2 ms
Memory 6152 KiB

Compile Error

app/Main.hs:1:1: warning: [-Wmissing-signatures]
    Top-level binding with no type signature: main :: IO ()
  |
1 | main=interact(\(a:b:c:_)->[b,c,a,' ',c,a,b])
  | ^^^^

app/Main.hs:1:15: warning: [-Wincomplete-uni-patterns]
    Pattern match(es) are non-exhaustive
    In a lambda abstraction:
        Patterns of type ‘[Char]’ not matched:
            []
            [_]
            [_, _]
  |
1 | main=interact(\(a:b:c:_)->[b,c,a,' ',c,a,b])
  |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 2
AC × 21
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt
All 00_sample_00.txt, 00_sample_01.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 01_random_16.txt, 01_random_17.txt, 01_random_18.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 1 ms 6080 KiB
00_sample_01.txt AC 2 ms 6092 KiB
01_random_00.txt AC 2 ms 6084 KiB
01_random_01.txt AC 1 ms 6080 KiB
01_random_02.txt AC 1 ms 6148 KiB
01_random_03.txt AC 1 ms 5876 KiB
01_random_04.txt AC 1 ms 6096 KiB
01_random_05.txt AC 1 ms 6152 KiB
01_random_06.txt AC 1 ms 6148 KiB
01_random_07.txt AC 1 ms 6104 KiB
01_random_08.txt AC 1 ms 6096 KiB
01_random_09.txt AC 1 ms 6092 KiB
01_random_10.txt AC 1 ms 6096 KiB
01_random_11.txt AC 1 ms 6096 KiB
01_random_12.txt AC 1 ms 6068 KiB
01_random_13.txt AC 1 ms 6096 KiB
01_random_14.txt AC 1 ms 6048 KiB
01_random_15.txt AC 1 ms 6112 KiB
01_random_16.txt AC 1 ms 6052 KiB
01_random_17.txt AC 1 ms 6080 KiB
01_random_18.txt AC 1 ms 6040 KiB