結果

問題 No.322 Geometry Dash
ユーザー kimiyukikimiyuki
提出日時 2016-02-28 22:12:39
言語 Haskell
(9.8.2)
結果
AC  
実行時間 774 ms / 2,000 ms
コード長 292 bytes
コンパイル時間 5,196 ms
コンパイル使用メモリ 167,736 KB
実行使用メモリ 61,404 KB
最終ジャッジ日時 2023-10-24 18:54:04
合計ジャッジ時間 24,354 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,280 KB
testcase_01 AC 2 ms
5,296 KB
testcase_02 AC 2 ms
5,352 KB
testcase_03 AC 2 ms
5,316 KB
testcase_04 AC 312 ms
38,252 KB
testcase_05 AC 513 ms
41,948 KB
testcase_06 AC 574 ms
43,996 KB
testcase_07 AC 634 ms
46,044 KB
testcase_08 AC 654 ms
48,092 KB
testcase_09 AC 514 ms
41,948 KB
testcase_10 AC 583 ms
43,996 KB
testcase_11 AC 624 ms
45,020 KB
testcase_12 AC 654 ms
46,044 KB
testcase_13 AC 683 ms
48,092 KB
testcase_14 AC 603 ms
45,020 KB
testcase_15 AC 634 ms
45,020 KB
testcase_16 AC 663 ms
46,044 KB
testcase_17 AC 694 ms
48,092 KB
testcase_18 AC 714 ms
49,116 KB
testcase_19 AC 644 ms
47,068 KB
testcase_20 AC 673 ms
47,068 KB
testcase_21 AC 683 ms
48,092 KB
testcase_22 AC 713 ms
49,116 KB
testcase_23 AC 754 ms
52,188 KB
testcase_24 AC 684 ms
49,116 KB
testcase_25 AC 704 ms
49,116 KB
testcase_26 AC 714 ms
50,140 KB
testcase_27 AC 754 ms
53,212 KB
testcase_28 AC 774 ms
55,260 KB
testcase_29 AC 674 ms
56,284 KB
testcase_30 AC 734 ms
61,404 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 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