結果

問題 No.1475 時計の歯車Easy
ユーザー gemmarogemmaro
提出日時 2021-04-15 07:56:31
言語 Haskell
(9.8.2)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 343 bytes
コンパイル時間 10,946 ms
コンパイル使用メモリ 161,496 KB
実行使用メモリ 9,424 KB
最終ジャッジ日時 2023-09-13 22:22:05
合計ジャッジ時間 13,089 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 5 ms
9,424 KB
testcase_01 AC 5 ms
9,276 KB
testcase_02 AC 3 ms
7,148 KB
testcase_03 AC 3 ms
7,536 KB
testcase_04 AC 3 ms
7,672 KB
testcase_05 AC 3 ms
7,612 KB
testcase_06 AC 3 ms
7,364 KB
testcase_07 AC 3 ms
7,360 KB
testcase_08 AC 4 ms
7,904 KB
testcase_09 AC 4 ms
8,192 KB
testcase_10 AC 4 ms
8,100 KB
testcase_11 AC 3 ms
7,848 KB
testcase_12 AC 3 ms
7,840 KB
testcase_13 AC 2 ms
7,088 KB
testcase_14 AC 3 ms
7,336 KB
testcase_15 AC 3 ms
7,900 KB
testcase_16 AC 3 ms
7,512 KB
testcase_17 AC 3 ms
7,664 KB
testcase_18 AC 3 ms
7,220 KB
testcase_19 AC 3 ms
7,292 KB
testcase_20 AC 3 ms
7,180 KB
testcase_21 AC 4 ms
8,020 KB
testcase_22 AC 3 ms
7,128 KB
testcase_23 AC 3 ms
7,128 KB
testcase_24 AC 2 ms
6,968 KB
testcase_25 AC 2 ms
7,004 KB
testcase_26 AC 3 ms
7,312 KB
testcase_27 AC 3 ms
7,280 KB
testcase_28 AC 4 ms
8,244 KB
testcase_29 AC 3 ms
7,508 KB
testcase_30 AC 3 ms
7,964 KB
testcase_31 AC 3 ms
7,504 KB
testcase_32 AC 4 ms
8,276 KB
testcase_33 AC 3 ms
7,676 KB
testcase_34 AC 3 ms
7,976 KB
testcase_35 AC 3 ms
7,312 KB
testcase_36 AC 4 ms
7,720 KB
testcase_37 AC 3 ms
7,480 KB
testcase_38 AC 3 ms
7,128 KB
testcase_39 AC 3 ms
7,364 KB
testcase_40 AC 3 ms
7,628 KB
testcase_41 AC 3 ms
7,788 KB
testcase_42 AC 3 ms
7,672 KB
testcase_43 AC 3 ms
7,428 KB
testcase_44 AC 4 ms
8,180 KB
testcase_45 AC 4 ms
8,040 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.1/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

import           Control.Monad                  ( replicateM )
import           Data.List                      ( sortBy )

main :: IO ()
main = do
  n  <- readLn
  ls <- replicateM n $ tail . map read . words <$> getLine
  putStr $ unlines $ map (unwords . map show) $ solve ls

solve :: [[Int]] -> [[Int]]
solve = map $ sortBy $ flip compare
0