結果

問題 No.1412 Super Ryuo
ユーザー miya145592miya145592
提出日時 2023-05-10 01:34:25
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 78 ms / 2,000 ms
コード長 198 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 86,864 KB
実行使用メモリ 71,384 KB
最終ジャッジ日時 2023-08-17 12:53:24
合計ジャッジ時間 2,478 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 75 ms
71,092 KB
testcase_01 AC 76 ms
71,124 KB
testcase_02 AC 78 ms
71,256 KB
testcase_03 AC 73 ms
71,016 KB
testcase_04 AC 73 ms
71,144 KB
testcase_05 AC 75 ms
71,372 KB
testcase_06 AC 75 ms
71,024 KB
testcase_07 AC 70 ms
71,216 KB
testcase_08 AC 71 ms
71,120 KB
testcase_09 AC 71 ms
71,184 KB
testcase_10 AC 72 ms
71,188 KB
testcase_11 AC 73 ms
71,336 KB
testcase_12 AC 73 ms
71,384 KB
testcase_13 AC 72 ms
71,232 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A, B, C, D = map(int, input().split())
X = abs(A-C)
Y = abs(B-D)
if X==0 or Y==0:
    print(1)
    exit()
if X<=1 and Y<=2:
    print(1)
    exit()
if X<=2 and Y<=1:
    print(1)
    exit()
print(2)
0