結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
52,608 KB
testcase_01 AC 38 ms
53,336 KB
testcase_02 AC 37 ms
53,632 KB
testcase_03 AC 37 ms
52,324 KB
testcase_04 AC 37 ms
52,564 KB
testcase_05 AC 37 ms
52,000 KB
testcase_06 AC 38 ms
52,400 KB
testcase_07 AC 36 ms
52,588 KB
testcase_08 AC 37 ms
53,064 KB
testcase_09 AC 37 ms
52,320 KB
testcase_10 AC 37 ms
52,248 KB
testcase_11 AC 37 ms
53,812 KB
testcase_12 AC 38 ms
53,236 KB
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 AC 37 ms
52,688 KB
testcase_18 AC 37 ms
52,900 KB
testcase_19 AC 37 ms
52,824 KB
testcase_20 AC 36 ms
52,252 KB
testcase_21 WA -
testcase_22 AC 37 ms
53,700 KB
testcase_23 AC 37 ms
52,700 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
import math

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

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

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

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

print(0)
0