結果

問題 No.1412 Super Ryuo
ユーザー brthyyjpbrthyyjp
提出日時 2021-12-22 15:11:24
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 184 bytes
コンパイル時間 277 ms
コンパイル使用メモリ 87,080 KB
実行使用メモリ 71,480 KB
最終ジャッジ日時 2023-10-14 15:25:57
合計ジャッジ時間 1,918 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 57 ms
71,144 KB
testcase_01 AC 56 ms
71,480 KB
testcase_02 AC 60 ms
71,264 KB
testcase_03 AC 59 ms
71,200 KB
testcase_04 AC 58 ms
71,424 KB
testcase_05 AC 65 ms
70,940 KB
testcase_06 AC 62 ms
71,480 KB
testcase_07 AC 59 ms
71,384 KB
testcase_08 AC 58 ms
71,096 KB
testcase_09 AC 60 ms
71,392 KB
testcase_10 AC 63 ms
71,368 KB
testcase_11 AC 60 ms
71,380 KB
testcase_12 AC 58 ms
71,296 KB
testcase_13 AC 59 ms
71,132 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d = map(int, input().split())
x = c-a
y = d-b

if x == 0 and y == 0:
    print(0)
elif x == 0 or y == 0:
    print(1)
elif abs(x)+abs(y) <= 3:
    print(1)
else:
    print(2)
0