結果

問題 No.172 UFOを捕まえろ
ユーザー yaoshimaxyaoshimax
提出日時 2015-03-26 23:52:23
言語 Python2
(2.7.18)
結果
WA  
実行時間 -
コード長 169 bytes
コンパイル時間 63 ms
コンパイル使用メモリ 6,504 KB
実行使用メモリ 6,128 KB
最終ジャッジ日時 2023-09-11 10:24:55
合計ジャッジ時間 1,569 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,900 KB
testcase_01 AC 11 ms
5,952 KB
testcase_02 AC 11 ms
5,900 KB
testcase_03 AC 11 ms
5,904 KB
testcase_04 WA -
testcase_05 AC 12 ms
5,900 KB
testcase_06 AC 12 ms
6,040 KB
testcase_07 AC 11 ms
5,956 KB
testcase_08 AC 12 ms
6,104 KB
testcase_09 AC 12 ms
5,964 KB
testcase_10 WA -
testcase_11 AC 12 ms
5,900 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 AC 11 ms
5,900 KB
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 12 ms
5,904 KB
testcase_18 WA -
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 12 ms
5,944 KB
testcase_22 WA -
testcase_23 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
x,y,r=map(int,raw_input().split())
x=abs(x)
y=abs(y)
if x==0 and y==0:
    print int(math.sqrt(2)*r+1)
else:
    print int(1+(x+y)*(1+r/math.sqrt(x*x+y*y)))
0