結果
問題 | No.98 円を描こう |
ユーザー |
|
提出日時 | 2015-05-29 22:11:43 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 11 ms / 5,000 ms |
コード長 | 232 bytes |
コンパイル時間 | 70 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-06 11:11:22 |
合計ジャッジ時間 | 665 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
# -*- coding:utf-8 -*-import mathif __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)