結果

問題 No.98 円を描こう
ユーザー mlihua09mlihua09
提出日時 2020-08-27 19:35:23
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 5,000 ms
コード長 140 bytes
コンパイル時間 303 ms
コンパイル使用メモリ 82,156 KB
実行使用メモリ 53,664 KB
最終ジャッジ日時 2024-04-25 14:29:56
合計ジャッジ時間 1,371 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
53,300 KB
testcase_01 AC 37 ms
52,936 KB
testcase_02 AC 37 ms
52,660 KB
testcase_03 AC 37 ms
52,432 KB
testcase_04 AC 37 ms
52,168 KB
testcase_05 AC 37 ms
52,936 KB
testcase_06 AC 37 ms
52,080 KB
testcase_07 AC 37 ms
52,748 KB
testcase_08 AC 37 ms
53,664 KB
testcase_09 AC 36 ms
52,832 KB
権限があれば一括ダウンロードができます

ソースコード

diff #


X, Y = map(int, input().split())

r = int((X ** 2 + Y ** 2) ** 0.5 * 2)

if (X ** 2 + Y ** 2) * 4 >= r ** 2:
    
    r += 1
    
print(r)
0