結果
問題 | No.98 円を描こう |
ユーザー | nbisco |
提出日時 | 2016-03-21 21:39:27 |
言語 | Python3 (3.12.2 + numpy 1.26.4 + scipy 1.12.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 209 bytes |
コンパイル時間 | 106 ms |
コンパイル使用メモリ | 11,904 KB |
実行使用メモリ | 10,112 KB |
最終ジャッジ日時 | 2024-04-08 21:26:40 |
合計ジャッジ時間 | 1,105 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 33 ms
10,112 KB |
testcase_01 | AC | 31 ms
10,112 KB |
testcase_02 | AC | 31 ms
10,112 KB |
testcase_03 | AC | 32 ms
10,112 KB |
testcase_04 | AC | 32 ms
10,112 KB |
testcase_05 | AC | 32 ms
10,112 KB |
testcase_06 | WA | - |
testcase_07 | AC | 31 ms
10,112 KB |
testcase_08 | AC | 32 ms
10,112 KB |
testcase_09 | WA | - |
ソースコード
#!/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)