結果

問題 No.1027 U+1F4A0
ユーザー 双六双六
提出日時 2020-08-26 05:50:17
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 387 bytes
コンパイル時間 160 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 53,760 KB
最終ジャッジ日時 2024-04-24 10:23:54
合計ジャッジ時間 1,971 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
53,504 KB
testcase_01 AC 46 ms
53,120 KB
testcase_02 AC 46 ms
53,120 KB
testcase_03 AC 42 ms
53,504 KB
testcase_04 AC 42 ms
53,248 KB
testcase_05 AC 41 ms
53,376 KB
testcase_06 AC 42 ms
53,504 KB
testcase_07 AC 41 ms
52,992 KB
testcase_08 AC 42 ms
53,632 KB
testcase_09 WA -
testcase_10 WA -
testcase_11 WA -
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 AC 40 ms
53,120 KB
testcase_17 AC 41 ms
53,248 KB
testcase_18 AC 40 ms
53,632 KB
testcase_19 AC 40 ms
53,632 KB
testcase_20 AC 41 ms
53,632 KB
testcase_21 AC 41 ms
53,504 KB
testcase_22 AC 42 ms
53,248 KB
testcase_23 AC 41 ms
53,504 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys; input = sys.stdin.buffer.readline
sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	D1, D2 = getlist()
	if D2 < D1 or D2 ** 2 > 2 * (D1 ** 2):
		print(0)

	elif D1 == D2:
		print(4)
	else:
		print(8)




if __name__ == '__main__':
	main()
0