結果
問題 |
No.98 円を描こう
|
ユーザー |
![]() |
提出日時 | 2019-09-29 16:31:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 31 ms / 5,000 ms |
コード長 | 211 bytes |
コンパイル時間 | 384 ms |
コンパイル使用メモリ | 12,800 KB |
実行使用メモリ | 10,752 KB |
最終ジャッジ日時 | 2024-10-03 04:30:22 |
合計ジャッジ時間 | 1,079 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
# -*- coding:utf-8 -*- import math (x,y) = [int(i) for i in input().rstrip().split(" ")] dist = pow(x,2) + pow(y, 2) ans = int(math.sqrt(dist) * 2) while (ans / 2) * (ans / 2) <= dist: ans += 1 print(ans)