Submission #123010


Source Code Expand

import Data.List

main :: IO ()
main = do nk <- getLine
          rs <- getLine
          print $ maximum (map (foldl acc 0) (getPermitations rs nk)) where
              acc :: Float -> Float -> Float
              acc n m = (n+m)/2
              getPermitations :: String -> String -> [[Float]]
              getPermitations rs nk = map (take (getSndInt nk)) (permutations (map read (words rs))) where
                  getSndInt :: String -> Int
                  getSndInt nk =  read $ last $ words nk

Submission Info

Submission Time
Task C - AtCoderプログラミング講座
User orumin
Language Haskell (GHC 7.4.1)
Score 0
Code Size 517 Byte
Status TLE
Exec Time 2032 ms
Memory 3364 KB

Judge Result

Set Name All
Score / Max Score 0 / 100
Status
AC × 4
TLE × 30
Set Name Test Cases
All 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, test_01.txt, test_02.txt, test_03.txt, test_04.txt, test_05.txt, test_06.txt, test_07.txt, test_08.txt, test_09.txt, test_10.txt, test_11.txt, test_12.txt, test_13.txt, test_14.txt, test_15.txt, test_16.txt, test_17.txt, test_18.txt, test_19.txt, test_20.txt, test_21.txt, test_22.txt, test_23.txt, test_24.txt, test_25.txt, test_26.txt, test_27.txt, test_28.txt, test_29.txt, test_30.txt
Case Name Status Exec Time Memory
00_sample_01.txt AC 73 ms 1312 KB
00_sample_02.txt AC 26 ms 1316 KB
00_sample_03.txt AC 984 ms 3220 KB
00_sample_04.txt TLE 2029 ms 3356 KB
test_01.txt AC 27 ms 1372 KB
test_02.txt TLE 2030 ms 3236 KB
test_03.txt TLE 2030 ms 3356 KB
test_04.txt TLE 2030 ms 3232 KB
test_05.txt TLE 2031 ms 3240 KB
test_06.txt TLE 2031 ms 3356 KB
test_07.txt TLE 2031 ms 3236 KB
test_08.txt TLE 2032 ms 3356 KB
test_09.txt TLE 2030 ms 3364 KB
test_10.txt TLE 2030 ms 3240 KB
test_11.txt TLE 2029 ms 3312 KB
test_12.txt TLE 2030 ms 3244 KB
test_13.txt TLE 2030 ms 3316 KB
test_14.txt TLE 2030 ms 3360 KB
test_15.txt TLE 2030 ms 3236 KB
test_16.txt TLE 2030 ms 3360 KB
test_17.txt TLE 2029 ms 3316 KB
test_18.txt TLE 2031 ms 3360 KB
test_19.txt TLE 2030 ms 3224 KB
test_20.txt TLE 2030 ms 3308 KB
test_21.txt TLE 2029 ms 3316 KB
test_22.txt TLE 2029 ms 3356 KB
test_23.txt TLE 2030 ms 3360 KB
test_24.txt TLE 2030 ms 3352 KB
test_25.txt TLE 2030 ms 3236 KB
test_26.txt TLE 2030 ms 3232 KB
test_27.txt TLE 2029 ms 3236 KB
test_28.txt TLE 2030 ms 3356 KB
test_29.txt TLE 2030 ms 3356 KB
test_30.txt TLE 2029 ms 3228 KB