結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
🍡yurahuna
|
| 提出日時 | 2016-01-21 03:38:07 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 60 ms / 5,000 ms |
| + 373µs | |
| コード長 | 151 bytes |
| 記録 | |
| コンパイル時間 | 67 ms |
| コンパイル使用メモリ | 80,640 KB |
| 実行使用メモリ | 81,024 KB |
| 最終ジャッジ日時 | 2026-07-18 02:03:39 |
| 合計ジャッジ時間 | 1,848 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
import math
x, y = map(int, raw_input().split())
d = math.sqrt(x*x + y*y)
if d*d == x*x + y*y:
print int(2*d+1)
else:
print int(math.ceil(2*d))
🍡yurahuna