結果
問題 | No.236 鴛鴦茶 |
ユーザー | kuuso1 |
提出日時 | 2016-08-18 06:29:03 |
言語 | F# (F# 4.0) |
結果 |
AC
|
実行時間 | 93 ms / 2,000 ms |
コード長 | 315 bytes |
コンパイル時間 | 5,543 ms |
コンパイル使用メモリ | 171,252 KB |
実行使用メモリ | 26,920 KB |
最終ジャッジ日時 | 2023-09-10 22:06:33 |
合計ジャッジ時間 | 8,812 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 92 ms
24,796 KB |
testcase_01 | AC | 92 ms
24,916 KB |
testcase_02 | AC | 92 ms
24,876 KB |
testcase_03 | AC | 90 ms
22,876 KB |
testcase_04 | AC | 92 ms
24,968 KB |
testcase_05 | AC | 92 ms
26,892 KB |
testcase_06 | AC | 91 ms
24,864 KB |
testcase_07 | AC | 92 ms
24,864 KB |
testcase_08 | AC | 92 ms
24,856 KB |
testcase_09 | AC | 93 ms
24,988 KB |
testcase_10 | AC | 92 ms
22,880 KB |
testcase_11 | AC | 93 ms
22,908 KB |
testcase_12 | AC | 92 ms
26,920 KB |
testcase_13 | AC | 93 ms
24,876 KB |
testcase_14 | AC | 91 ms
24,868 KB |
testcase_15 | AC | 91 ms
24,932 KB |
testcase_16 | AC | 93 ms
24,872 KB |
testcase_17 | AC | 92 ms
25,048 KB |
testcase_18 | AC | 91 ms
25,052 KB |
testcase_19 | AC | 90 ms
24,720 KB |
testcase_20 | AC | 92 ms
26,888 KB |
testcase_21 | AC | 91 ms
25,044 KB |
testcase_22 | AC | 91 ms
24,884 KB |
testcase_23 | AC | 91 ms
24,780 KB |
testcase_24 | AC | 91 ms
25,056 KB |
コンパイルメッセージ
Microsoft (R) F# Compiler version 11.0.0.0 for F# 5.0 Copyright (c) Microsoft Corporation. All Rights Reserved. /home/judge/data/code/Main.fs(4,13): warning FS0025: Incomplete pattern matches on this expression. For example, the value '[|_; _; _; _; _|]' may indicate a case not covered by the pattern(s).
ソースコード
open System type Sol() = member this.Solve() = let [| A;B;X;Y |] = stdin.ReadLine().Split() |> Array.map double let needY = X / A * B; let needX = Y / B * A; let ans = if needY <= Y then (X + needY) else (Y + needX) printfn "%f" ans let mySol = new Sol() mySol.Solve()