結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
🍡yurahuna
|
| 提出日時 | 2016-01-21 03:38:07 |
| 言語 | PyPy2 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 80 ms / 5,000 ms |
| コード長 | 151 bytes |
| 記録 | |
| コンパイル時間 | 138 ms |
| コンパイル使用メモリ | 77,464 KB |
| 最終ジャッジ日時 | 2025-12-03 19:03:49 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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