結果
| 問題 | No.98 円を描こう |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2015-05-29 22:11:43 |
| 言語 | PyPy2 (7.3.20) |
| 結果 |
AC
|
| 実行時間 | 61 ms / 5,000 ms |
| + 67µs | |
| コード長 | 232 bytes |
| 記録 | |
| コンパイル時間 | 68 ms |
| コンパイル使用メモリ | 80,640 KB |
| 実行使用メモリ | 80,896 KB |
| 最終ジャッジ日時 | 2026-07-17 15:36:52 |
| 合計ジャッジ時間 | 1,871 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
# -*- coding:utf-8 -*- import math if __name__ == "__main__": x,y = map(int,raw_input().split()) dist = math.sqrt(x ** 2 + y ** 2) dist2 = round(dist,0) if dist2 <= dist: print int(dist2 * 2 +1) else: print int(dist2 * 2)