結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,132 KB
testcase_01 AC 39 ms
52,868 KB
testcase_02 AC 39 ms
52,920 KB
testcase_03 AC 38 ms
52,124 KB
testcase_04 AC 38 ms
52,636 KB
testcase_05 AC 38 ms
52,500 KB
testcase_06 AC 39 ms
53,220 KB
testcase_07 AC 38 ms
53,416 KB
testcase_08 AC 38 ms
52,508 KB
testcase_09 AC 38 ms
52,460 KB
testcase_10 AC 39 ms
53,068 KB
testcase_11 AC 38 ms
52,716 KB
testcase_12 AC 38 ms
52,384 KB
testcase_13 AC 38 ms
53,352 KB
testcase_14 AC 38 ms
51,952 KB
testcase_15 AC 37 ms
52,004 KB
testcase_16 WA -
testcase_17 AC 38 ms
52,128 KB
testcase_18 AC 37 ms
52,584 KB
testcase_19 AC 38 ms
53,140 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 AC 38 ms
52,308 KB
testcase_23 AC 37 ms
52,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math

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

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

if d1 == d2 // 2:
    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