結果
問題 |
No.98 円を描こう
|
ユーザー |
![]() |
提出日時 | 2016-03-21 21:39:27 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
WA
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 98 ms |
コンパイル使用メモリ | 12,672 KB |
実行使用メモリ | 10,880 KB |
最終ジャッジ日時 | 2024-10-01 12:26:30 |
合計ジャッジ時間 | 953 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 4 WA * 2 |
ソースコード
#!/usr/bin/env python3 #fileencoding: utf-8 from math import sqrt, ceil x,y = [int(i) for i in input().strip().split(" ")] r = sqrt(x**2 + y**2) R = ceil(r)*2 if R > r*2: print(R) else: print(R+1)