結果

問題 No.1412 Super Ryuo
ユーザー 👑 KazunKazun
提出日時 2021-02-28 21:21:51
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 222 bytes
コンパイル時間 172 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 53,372 KB
最終ジャッジ日時 2024-04-12 10:21:10
合計ジャッジ時間 1,472 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
53,356 KB
testcase_01 AC 36 ms
51,756 KB
testcase_02 AC 41 ms
52,616 KB
testcase_03 AC 36 ms
52,216 KB
testcase_04 AC 37 ms
52,740 KB
testcase_05 AC 38 ms
53,040 KB
testcase_06 AC 36 ms
53,288 KB
testcase_07 AC 37 ms
52,304 KB
testcase_08 AC 37 ms
51,952 KB
testcase_09 AC 36 ms
52,188 KB
testcase_10 AC 37 ms
52,000 KB
testcase_11 AC 36 ms
52,372 KB
testcase_12 AC 38 ms
52,196 KB
testcase_13 AC 38 ms
53,372 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve(X,Y):
    if X==Y==0:
        return 0
    elif X==0 or Y==0:
        return 1
    elif abs(X)+abs(Y)<=3:
        return 1
    else:
        return 2
A,B,C,D=map(int,input().split())
X=A-C
Y=B-D
print(solve(X,Y))
0