結果
問題 | No.231 めぐるはめぐる (1) |
ユーザー | tak |
提出日時 | 2019-02-15 10:59:37 |
言語 | F# (F# 4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 470 bytes |
コンパイル時間 | 5,305 ms |
コンパイル使用メモリ | 165,396 KB |
実行使用メモリ | 24,440 KB |
最終ジャッジ日時 | 2023-10-12 07:06:50 |
合計ジャッジ時間 | 8,921 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | AC | 63 ms
24,320 KB |
testcase_02 | AC | 63 ms
22,456 KB |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | AC | 64 ms
22,268 KB |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | AC | 60 ms
22,276 KB |
testcase_12 | WA | - |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved.
ソースコード
[<Measure>] type h type Dungeon = { Exp: int</h>; Death: int</h> } let solve dungeons = dungeons |> Array.map (fun x -> x.Exp - 30000 * x.Death) |> Array.sortByDescending id |> Array.head |> fun x -> x * 6<h> >= 30000 * 100 |> function | true -> "YES" | _ -> "NO" let R() = stdin.ReadLine() let N = R() |> int let GD = Array.init N (fun _ -> let t = R().Split() |> Array.map (int>>(*)1</h>) { Exp = t.[0]; Death = t.[1]}) solve GD |> stdout.WriteLine