結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-05-01 19:57:42 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 174 bytes |
| コンパイル時間 | 99 ms |
| コンパイル使用メモリ | 6,692 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-28 00:12:38 |
| 合計ジャッジ時間 | 575 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
print((function (x, y)
local i,f=math.modf(math.sqrt(math.abs(x)^2+math.abs(y)^2))
return (f==0 or f*2<1) and i*2+1 or i*2+2
end)(io.stdin:read("*n"), io.stdin:read("*n")))
nobigomu