結果

問題 No.485 方程式のお勉強
ユーザー ichibanshiboriichibanshibori
提出日時 2017-02-24 22:22:42
言語 F#
(F# 4.0)
結果
AC  
実行時間 72 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 9,897 ms
コンパイル使用メモリ 184,544 KB
実行使用メモリ 30,848 KB
最終ジャッジ日時 2024-04-14 22:47:29
合計ジャッジ時間 11,968 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 68 ms
30,848 KB
testcase_01 AC 68 ms
30,588 KB
testcase_02 AC 68 ms
30,592 KB
testcase_03 AC 69 ms
30,592 KB
testcase_04 AC 72 ms
30,828 KB
testcase_05 AC 69 ms
30,712 KB
testcase_06 AC 68 ms
30,848 KB
testcase_07 AC 69 ms
30,712 KB
testcase_08 AC 70 ms
30,700 KB
testcase_09 AC 68 ms
30,464 KB
testcase_10 AC 69 ms
30,592 KB
testcase_11 AC 69 ms
30,592 KB
testcase_12 AC 69 ms
30,464 KB
testcase_13 AC 69 ms
30,592 KB
testcase_14 AC 69 ms
30,592 KB
testcase_15 AC 69 ms
30,464 KB
testcase_16 AC 69 ms
30,464 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (375 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/

ソースコード

diff #

let () =
    let a, b = stdin.ReadLine().Split()
               |> Array.map int
               |> fun arr -> (arr.[0], arr.[1])

    b % a = 0
    |> function | true -> b / a |> string | false -> "NO"
    |> printfn "%s"
0