結果

問題 No.98 円を描こう
ユーザー hum_ophum_op
提出日時 2016-04-22 23:31:56
言語 F#
(F# 4.0)
結果
AC  
実行時間 320 ms / 5,000 ms
コード長 214 bytes
コンパイル時間 7,163 ms
コンパイル使用メモリ 194,532 KB
実行使用メモリ 36,260 KB
最終ジャッジ日時 2024-04-15 04:14:40
合計ジャッジ時間 11,210 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 320 ms
35,908 KB
testcase_01 AC 317 ms
36,128 KB
testcase_02 AC 312 ms
36,076 KB
testcase_03 AC 317 ms
35,944 KB
testcase_04 AC 314 ms
36,228 KB
testcase_05 AC 317 ms
35,872 KB
testcase_06 AC 320 ms
35,840 KB
testcase_07 AC 316 ms
36,260 KB
testcase_08 AC 315 ms
36,004 KB
testcase_09 AC 318 ms
36,124 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (236 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 #

open System

let No98 () =
    let IN = Console.ReadLine().Split(' ')
    let x, y = Double.Parse IN.[0], Double.Parse IN.[1]

    let d = sqrt(x ** 2. + y ** 2.) * 2. + 1.
    printfn "%d" <| int d
    ()

No98 ()
0