結果

問題 No.98 円を描こう
ユーザー regeregeregerege
提出日時 2016-04-04 21:33:02
言語 F#
(F# 4.0)
結果
AC  
実行時間 345 ms / 5,000 ms
コード長 169 bytes
コンパイル時間 15,347 ms
コンパイル使用メモリ 184,416 KB
実行使用メモリ 34,860 KB
最終ジャッジ日時 2024-04-14 21:30:46
合計ジャッジ時間 19,071 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 340 ms
34,576 KB
testcase_01 AC 345 ms
34,536 KB
testcase_02 AC 340 ms
34,668 KB
testcase_03 AC 338 ms
34,748 KB
testcase_04 AC 342 ms
34,656 KB
testcase_05 AC 338 ms
34,844 KB
testcase_06 AC 339 ms
34,796 KB
testcase_07 AC 341 ms
34,700 KB
testcase_08 AC 339 ms
34,732 KB
testcase_09 AC 344 ms
34,860 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
  復元対象のプロジェクトを決定しています...
  /home/judge/data/code/main.fsproj を復元しました (395 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 float <| stdin.ReadLine().Split(' ')
let x,y = a.[0],a.[1]
let s =
  if x = 0. || y = 0. then max x y
  else sqrt(x*x+y*y)
printfn "%d" <| int(s*2.)+1
0