結果
問題 | No.98 円を描こう |
ユーザー |
![]() |
提出日時 | 2016-01-21 03:38:07 |
言語 | Python2 (2.7.18) |
結果 |
AC
|
実行時間 | 13 ms / 5,000 ms |
コード長 | 151 bytes |
コンパイル時間 | 53 ms |
コンパイル使用メモリ | 6,912 KB |
実行使用メモリ | 6,528 KB |
最終ジャッジ日時 | 2024-09-21 14:54:32 |
合計ジャッジ時間 | 728 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 6 |
ソースコード
import mathx, y = map(int, raw_input().split())d = math.sqrt(x*x + y*y)if d*d == x*x + y*y:print int(2*d+1)else:print int(math.ceil(2*d))