結果
| 問題 | 
                            No.98 円を描こう
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2016-04-04 21:33:37 | 
| 言語 | F#  (F# 4.0)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 317 ms / 5,000 ms | 
| コード長 | 179 bytes | 
| コンパイル時間 | 7,329 ms | 
| コンパイル使用メモリ | 192,908 KB | 
| 実行使用メモリ | 34,524 KB | 
| 最終ジャッジ日時 | 2024-10-04 00:54:36 | 
| 合計ジャッジ時間 | 9,582 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 6 | 
コンパイルメッセージ
復元対象のプロジェクトを決定しています... /home/judge/data/code/main.fsproj を復元しました (259 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/
ソースコード
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"