結果
問題 |
No.98 円を描こう
|
ユーザー |
![]() |
提出日時 | 2018-05-01 19:46:46 |
言語 | Lua (LuaJit 2.1.1734355927) |
結果 |
WA
|
実行時間 | - |
コード長 | 171 bytes |
コンパイル時間 | 40 ms |
コンパイル使用メモリ | 6,812 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-06-28 00:12:37 |
合計ジャッジ時間 | 611 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 4 WA * 2 |
ソースコード
print((function (x, y) local r=math.sqrt(math.abs(x)^2+math.abs(y)^2) return r==math.floor(r) and 2*r+1 or 2*math.ceil(r) end)(io.stdin:read("*n"), io.stdin:read("*n")))