結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-05-01 19:46:46 |
| 言語 | Lua (LuaJit 2.1.1774638290) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 171 bytes |
| 記録 | |
| コンパイル時間 | 474 ms |
| コンパイル使用メモリ | 7,968 KB |
| 実行使用メモリ | 7,848 KB |
| 最終ジャッジ日時 | 2026-03-16 07:24:34 |
| 合計ジャッジ時間 | 1,249 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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")))
nobigomu