結果

問題 No.98 円を描こう
ユーザー regeregeregerege
提出日時 2016-04-04 21:33:37
言語 F#
(F# 4.0)
結果
AC  
実行時間 337 ms / 5,000 ms
コード長 179 bytes
コンパイル時間 6,555 ms
コンパイル使用メモリ 185,876 KB
実行使用メモリ 34,844 KB
最終ジャッジ日時 2024-04-14 21:31:20
合計ジャッジ時間 11,079 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 335 ms
34,656 KB
testcase_01 AC 336 ms
34,040 KB
testcase_02 AC 337 ms
33,908 KB
testcase_03 AC 333 ms
34,844 KB
testcase_04 AC 334 ms
34,040 KB
testcase_05 AC 331 ms
33,908 KB
testcase_06 AC 331 ms
34,588 KB
testcase_07 AC 331 ms
33,912 KB
testcase_08 AC 329 ms
34,812 KB
testcase_09 AC 335 ms
34,292 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (223 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 a = Array.map decimal <| stdin.ReadLine().Split(' ')
let x,y = a.[0],a.[1]
if x = 0M || y = 0M then int(max x y  * 2M + 1M)
else int(sqrt(float(x*x+y*y))*2.)+1
|> printfn "%d"
0