結果

問題 No.1412 Super Ryuo
ユーザー mkawa2mkawa2
提出日時 2021-03-01 16:42:58
言語 Python3
(3.11.6 + numpy 1.26.0 + scipy 1.11.3)
結果
WA  
実行時間 -
コード長 615 bytes
コンパイル時間 572 ms
コンパイル使用メモリ 10,868 KB
実行使用メモリ 7,892 KB
最終ジャッジ日時 2023-07-26 13:42:25
合計ジャッジ時間 1,563 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 16 ms
7,748 KB
testcase_01 AC 17 ms
7,892 KB
testcase_02 AC 17 ms
7,780 KB
testcase_03 AC 16 ms
7,824 KB
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 17 ms
7,776 KB
testcase_07 AC 17 ms
7,808 KB
testcase_08 AC 17 ms
7,804 KB
testcase_09 AC 17 ms
7,856 KB
testcase_10 AC 17 ms
7,824 KB
testcase_11 AC 16 ms
7,764 KB
testcase_12 AC 16 ms
7,772 KB
testcase_13 AC 16 ms
7,892 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys

sys.setrecursionlimit(10**5)
int1 = lambda x: int(x)-1
p2D = lambda x: print(*x, sep="\n")
def II(): return int(sys.stdin.buffer.readline())
def MI(): return map(int, sys.stdin.buffer.readline().split())
def LI(): return list(map(int, sys.stdin.buffer.readline().split()))
def LLI(rows_number): return [LI() for _ in range(rows_number)]
def BI(): return sys.stdin.buffer.readline().rstrip()
def SI(): return sys.stdin.buffer.readline().rstrip().decode()
inf = 10**16
md = 10**9+7
# md = 998244353

a,b,c,d=MI()
if a==c and b==d:
    ans=0
elif abs(a-c)+abs(b-d)<=3:
    ans=1
else:
    ans=2
print(ans)
0