結果

問題 No.1027 U+1F4A0
ユーザー now4estnow4est
提出日時 2020-04-17 23:28:54
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 221 bytes
コンパイル時間 385 ms
コンパイル使用メモリ 82,288 KB
実行使用メモリ 53,812 KB
最終ジャッジ日時 2024-04-14 15:40:42
合計ジャッジ時間 2,270 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
52,344 KB
testcase_01 AC 38 ms
52,136 KB
testcase_02 AC 38 ms
52,404 KB
testcase_03 AC 38 ms
52,004 KB
testcase_04 AC 41 ms
53,424 KB
testcase_05 AC 38 ms
52,824 KB
testcase_06 AC 38 ms
52,328 KB
testcase_07 AC 38 ms
52,064 KB
testcase_08 AC 39 ms
52,800 KB
testcase_09 AC 39 ms
52,220 KB
testcase_10 AC 38 ms
51,880 KB
testcase_11 AC 39 ms
53,068 KB
testcase_12 AC 39 ms
52,280 KB
testcase_13 AC 38 ms
53,024 KB
testcase_14 AC 38 ms
52,448 KB
testcase_15 AC 38 ms
52,688 KB
testcase_16 AC 38 ms
52,948 KB
testcase_17 AC 39 ms
52,200 KB
testcase_18 AC 38 ms
51,880 KB
testcase_19 AC 39 ms
53,812 KB
testcase_20 AC 38 ms
51,676 KB
testcase_21 AC 38 ms
52,952 KB
testcase_22 AC 39 ms
52,888 KB
testcase_23 AC 39 ms
53,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

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

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

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

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

print(0)
0