結果

問題 No.1412 Super Ryuo
ユーザー googol_S0googol_S0
提出日時 2021-02-28 21:21:31
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 37 ms / 2,000 ms
コード長 127 bytes
コンパイル時間 246 ms
コンパイル使用メモリ 82,464 KB
実行使用メモリ 53,084 KB
最終ジャッジ日時 2024-04-12 10:20:28
合計ジャッジ時間 1,209 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
51,928 KB
testcase_01 AC 35 ms
52,692 KB
testcase_02 AC 35 ms
52,504 KB
testcase_03 AC 32 ms
52,276 KB
testcase_04 AC 30 ms
52,236 KB
testcase_05 AC 30 ms
51,824 KB
testcase_06 AC 31 ms
52,272 KB
testcase_07 AC 31 ms
52,600 KB
testcase_08 AC 34 ms
52,568 KB
testcase_09 AC 31 ms
51,872 KB
testcase_10 AC 33 ms
52,284 KB
testcase_11 AC 31 ms
52,808 KB
testcase_12 AC 30 ms
51,676 KB
testcase_13 AC 30 ms
53,084 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

A,B,C,D=map(int,input().split())
ANS=2
if A==C:
  ANS-=1
if B==D:
  ANS-=1
if abs(A-C)+abs(B-D)<=3:
  ANS=min(ANS,1)
print(ANS)
0