結果
| 問題 |
No.98 円を描こう
|
| コンテスト | |
| ユーザー |
JunOnuma
|
| 提出日時 | 2017-06-13 13:15:06 |
| 言語 | Python2 (2.7.18) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 151 bytes |
| コンパイル時間 | 84 ms |
| コンパイル使用メモリ | 7,040 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 16:55:27 |
| 合計ジャッジ時間 | 732 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 4 WA * 2 |
ソースコード
import math
x,y = map(float, raw_input().split())
r = math.sqrt(x*x+y*y)
if r - int(r) == 0:
print 2 * int(r) + 1
else:
print 2 * (int(r) + 1)
JunOnuma