結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2016-08-14 17:35:21 |
| 言語 | Python2 (2.7.18) |
| 結果 |
AC
|
| 実行時間 | 12 ms / 5,000 ms |
| コード長 | 215 bytes |
| コンパイル時間 | 111 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,528 KB |
| 最終ジャッジ日時 | 2024-11-07 16:47:10 |
| 合計ジャッジ時間 | 816 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 6 |
ソースコード
#!/usr/bin/python
# -*- coding: utf-8 -*-
import math
x,y = map(int, raw_input().split())
tmp = math.sqrt(x**2*1.0 + y**2*1.0) * 2
if tmp % 1 == 0:
print int(tmp + 1)
else:
print int(math.ceil(tmp))