結果

問題 No.1412 Super Ryuo
ユーザー RedSpicaRedSpica
提出日時 2021-02-28 21:25:40
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 35 ms / 2,000 ms
コード長 206 bytes
コンパイル時間 126 ms
コンパイル使用メモリ 82,436 KB
実行使用メモリ 53,536 KB
最終ジャッジ日時 2024-04-12 10:24:37
合計ジャッジ時間 1,148 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
52,120 KB
testcase_01 AC 32 ms
53,048 KB
testcase_02 AC 33 ms
52,796 KB
testcase_03 AC 32 ms
53,132 KB
testcase_04 AC 35 ms
52,688 KB
testcase_05 AC 30 ms
52,672 KB
testcase_06 AC 29 ms
52,468 KB
testcase_07 AC 29 ms
53,536 KB
testcase_08 AC 30 ms
52,940 KB
testcase_09 AC 30 ms
52,824 KB
testcase_10 AC 30 ms
53,240 KB
testcase_11 AC 31 ms
53,008 KB
testcase_12 AC 29 ms
52,264 KB
testcase_13 AC 29 ms
52,260 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    a,b,c,d=map(int,input().split())
    if a==c and b==d:
        return 0
    if abs(a-c)+abs(b-d)<=3:
        return 1
    if a==c or b==d:
        return 1
    
    return 2

print(solve())
0