結果

問題 No.1027 U+1F4A0
ユーザー natoriusannatoriusan
提出日時 2023-07-30 16:35:28
言語 F#
(F# 4.0)
結果
AC  
実行時間 292 ms / 2,000 ms
コード長 195 bytes
コンパイル時間 12,006 ms
コンパイル使用メモリ 201,628 KB
実行使用メモリ 34,916 KB
最終ジャッジ日時 2024-04-17 17:41:30
合計ジャッジ時間 18,752 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 290 ms
34,568 KB
testcase_01 AC 290 ms
34,088 KB
testcase_02 AC 287 ms
34,788 KB
testcase_03 AC 286 ms
34,596 KB
testcase_04 AC 291 ms
34,400 KB
testcase_05 AC 287 ms
34,404 KB
testcase_06 AC 287 ms
34,436 KB
testcase_07 AC 290 ms
34,456 KB
testcase_08 AC 287 ms
33,792 KB
testcase_09 AC 288 ms
34,472 KB
testcase_10 AC 291 ms
33,904 KB
testcase_11 AC 290 ms
34,916 KB
testcase_12 AC 291 ms
33,708 KB
testcase_13 AC 290 ms
33,924 KB
testcase_14 AC 292 ms
34,596 KB
testcase_15 AC 288 ms
33,916 KB
testcase_16 AC 288 ms
33,680 KB
testcase_17 AC 289 ms
34,304 KB
testcase_18 AC 287 ms
34,480 KB
testcase_19 AC 291 ms
34,592 KB
testcase_20 AC 291 ms
33,924 KB
testcase_21 AC 287 ms
34,552 KB
testcase_22 AC 287 ms
34,416 KB
testcase_23 AC 287 ms
33,980 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (257 ms)。
MSBuild のバージョン 17.9.6+a4ecab324 (.NET)
/home/judge/data/code/Main.fs(1,5): warning FS0025: この式のパターン マッチが不完全です たとえば、値 '[|_; _; _|]' はパターンに含まれないケースを示す可能性があります。 [/home/judge/data/code/main.fsproj]
  main -> /home/judge/data/code/bin/Release/net8.0/main.dll
  main -> /home/judge/data/code/bin/Release/net8.0/publish/

ソースコード

diff #

let [|d1; d2|] = stdin.ReadLine().Split " " |> Array.map float


if d2 / 2. > d1 then
    0
elif d2 / 2. = d1 then
    4
elif d2 > d1 then
    8
elif d2 = d1 then
    4
else
    0
|> printfn "%d"
0