結果
問題 | No.98 円を描こう |
ユーザー |
![]() |
提出日時 | 2023-10-23 10:55:46 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 38 ms / 5,000 ms |
コード長 | 132 bytes |
コンパイル時間 | 192 ms |
コンパイル使用メモリ | 82,212 KB |
実行使用メモリ | 53,624 KB |
最終ジャッジ日時 | 2024-09-22 10:01:53 |
合計ジャッジ時間 | 1,219 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
import math a, b = map(int, input().split()) c = math.sqrt(a**2 + b**2) print(int(c * 2 + 1) if c == int(c) else math.ceil(c * 2))