結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-02-02 15:21:08 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 40 ms / 5,000 ms |
| コード長 | 228 bytes |
| コンパイル時間 | 186 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 52,224 KB |
| 最終ジャッジ日時 | 2024-06-11 09:26:23 |
| 合計ジャッジ時間 | 1,182 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
import sys
import math
def input(): return sys.stdin.readline().rstrip()
def main():
xp, yp = map(int, input().split())
R = math.sqrt(xp**2+yp**2)
print(math.floor(2*R)+1)
if __name__ == '__main__':
main()