結果

問題 No.1027 U+1F4A0
ユーザー now4estnow4est
提出日時 2020-04-17 23:21:58
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 309 bytes
コンパイル時間 164 ms
コンパイル使用メモリ 82,360 KB
実行使用メモリ 54,596 KB
最終ジャッジ日時 2024-04-14 15:37:00
合計ジャッジ時間 2,091 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
53,396 KB
testcase_01 AC 38 ms
52,192 KB
testcase_02 AC 38 ms
53,876 KB
testcase_03 AC 38 ms
52,936 KB
testcase_04 AC 39 ms
53,668 KB
testcase_05 AC 38 ms
53,412 KB
testcase_06 AC 39 ms
52,820 KB
testcase_07 AC 38 ms
52,096 KB
testcase_08 AC 40 ms
53,924 KB
testcase_09 AC 39 ms
53,636 KB
testcase_10 AC 39 ms
52,404 KB
testcase_11 AC 39 ms
53,004 KB
testcase_12 AC 38 ms
52,588 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 38 ms
52,288 KB
testcase_18 AC 38 ms
52,724 KB
testcase_19 AC 38 ms
52,780 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 37 ms
53,008 KB
testcase_23 AC 37 ms
52,436 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math

d1, d2 = map(int, sys.stdin.readline().split())

if d1 == d2:
    print(4)
    sys.exit()

if ((math.sqrt(2*d2) // 2) == math.sqrt(d1)):
    print(4)
    sys.exit()

if (math.sqrt(d1) < math.sqrt(d2)) and ((math.sqrt(2*d2) // 2) < math.sqrt(d1)):
    print(8)
    sys.exit()

print(0)
0