結果

問題 No.322 Geometry Dash
ユーザー kimiyukikimiyuki
提出日時 2016-02-28 22:13:13
言語 Haskell
(9.8.2)
結果
AC  
実行時間 904 ms / 2,000 ms
コード長 319 bytes
コンパイル時間 4,886 ms
コンパイル使用メモリ 167,916 KB
実行使用メモリ 61,376 KB
最終ジャッジ日時 2023-10-24 18:55:11
合計ジャッジ時間 30,779 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
5,252 KB
testcase_01 AC 3 ms
5,268 KB
testcase_02 AC 3 ms
5,324 KB
testcase_03 AC 2 ms
5,288 KB
testcase_04 AC 343 ms
38,224 KB
testcase_05 AC 574 ms
41,920 KB
testcase_06 AC 674 ms
43,968 KB
testcase_07 AC 754 ms
46,016 KB
testcase_08 AC 794 ms
48,064 KB
testcase_09 AC 573 ms
41,936 KB
testcase_10 AC 704 ms
43,968 KB
testcase_11 AC 764 ms
44,992 KB
testcase_12 AC 783 ms
46,016 KB
testcase_13 AC 823 ms
48,064 KB
testcase_14 AC 714 ms
44,992 KB
testcase_15 AC 784 ms
44,992 KB
testcase_16 AC 824 ms
46,016 KB
testcase_17 AC 854 ms
48,064 KB
testcase_18 AC 874 ms
49,088 KB
testcase_19 AC 804 ms
47,040 KB
testcase_20 AC 834 ms
47,040 KB
testcase_21 AC 844 ms
48,064 KB
testcase_22 AC 864 ms
49,088 KB
testcase_23 AC 904 ms
52,160 KB
testcase_24 AC 824 ms
49,088 KB
testcase_25 AC 824 ms
49,088 KB
testcase_26 AC 863 ms
50,112 KB
testcase_27 AC 894 ms
53,184 KB
testcase_28 AC 894 ms
55,232 KB
testcase_29 AC 785 ms
56,256 KB
testcase_30 AC 855 ms
61,376 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Loaded package environment from /home/judge/.ghc/x86_64-linux-9.6.2/environments/default
[1 of 2] Compiling Main             ( Main.hs, Main.o )
[2 of 2] Linking a.out

ソースコード

diff #

module Main where
import Control.Applicative
import Data.List
import Data.Ratio
trd3 (_, _, c) = c
main = do
    _ <- getLine
    ts <- map read . words <$> getLine
    ds <- map read . words <$> getLine
    putStrLn . unwords . map (show . trd3) . sort $ zipWith3 (\ t d i -> (d % t :: Ratio Int, - t, i)) ts ds [1 ..]
0