結果

問題 No.1412 Super Ryuo
ユーザー shotoyooshotoyoo
提出日時 2021-03-01 00:29:02
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 260 bytes
コンパイル時間 283 ms
コンパイル使用メモリ 82,460 KB
実行使用メモリ 53,688 KB
最終ジャッジ日時 2024-04-14 03:17:33
合計ジャッジ時間 2,075 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,492 KB
testcase_01 AC 38 ms
52,332 KB
testcase_02 AC 37 ms
52,520 KB
testcase_03 AC 40 ms
52,196 KB
testcase_04 AC 41 ms
53,688 KB
testcase_05 AC 39 ms
52,824 KB
testcase_06 AC 39 ms
52,272 KB
testcase_07 AC 38 ms
52,432 KB
testcase_08 AC 38 ms
52,332 KB
testcase_09 AC 37 ms
53,560 KB
testcase_10 AC 38 ms
52,900 KB
testcase_11 AC 38 ms
53,576 KB
testcase_12 AC 38 ms
52,444 KB
testcase_13 AC 37 ms
52,692 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = lambda : sys.stdin.readline().rstrip()

sys.setrecursionlimit(2*10**5+10)
write = lambda x: sys.stdout.write(x+"\n")

a,b,c,d = list(map(int, input().split()))
if a==c or b==d or abs(a-c)+abs(b-d)<=3:
    ans = 1
else:
    ans = 2
print(ans)
0