結果
| 問題 | No.231 めぐるはめぐる (1) |
| コンテスト | |
| ユーザー |
tak
|
| 提出日時 | 2019-02-15 10:59:37 |
| 言語 | F# (F# 4.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 470 bytes |
| 記録 | |
| コンパイル時間 | 15,496 ms |
| コンパイル使用メモリ | 193,008 KB |
| 実行使用メモリ | 31,456 KB |
| 最終ジャッジ日時 | 2024-09-14 06:22:52 |
| 合計ジャッジ時間 | 12,194 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge6 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 1 |
| other | AC * 3 WA * 8 |
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (338 ms)。 MSBuild のバージョン 17.9.6+a4ecab324 (.NET) main -> /home/judge/data/code/bin/Release/net8.0/main.dll main -> /home/judge/data/code/bin/Release/net8.0/publish/
ソースコード
[<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
tak