結果

問題 No.1027 U+1F4A0
ユーザー natoriusannatoriusan
提出日時 2023-07-30 16:33:38
言語 F#
(F# 4.0)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 9,005 ms
コンパイル使用メモリ 197,620 KB
実行使用メモリ 34,740 KB
最終ジャッジ日時 2024-04-17 17:38:09
合計ジャッジ時間 17,612 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 338 ms
34,356 KB
testcase_01 AC 337 ms
34,364 KB
testcase_02 AC 338 ms
34,444 KB
testcase_03 AC 336 ms
34,184 KB
testcase_04 AC 337 ms
34,492 KB
testcase_05 AC 336 ms
33,972 KB
testcase_06 AC 336 ms
34,620 KB
testcase_07 AC 336 ms
34,732 KB
testcase_08 AC 338 ms
33,844 KB
testcase_09 AC 336 ms
34,604 KB
testcase_10 AC 342 ms
34,052 KB
testcase_11 AC 340 ms
33,972 KB
testcase_12 AC 345 ms
33,720 KB
testcase_13 AC 338 ms
34,740 KB
testcase_14 AC 341 ms
33,852 KB
testcase_15 AC 340 ms
34,740 KB
testcase_16 AC 339 ms
33,716 KB
testcase_17 AC 338 ms
33,964 KB
testcase_18 AC 338 ms
33,592 KB
testcase_19 AC 340 ms
34,488 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 340 ms
33,672 KB
testcase_23 AC 339 ms
34,604 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (250 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 int


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