結果

問題 No.1412 Super Ryuo
ユーザー recurakirecuraki
提出日時 2021-02-28 22:12:36
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 82,100 KB
実行使用メモリ 53,896 KB
最終ジャッジ日時 2024-04-12 10:53:53
合計ジャッジ時間 1,428 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 35 ms
52,888 KB
testcase_01 AC 33 ms
52,572 KB
testcase_02 AC 35 ms
51,820 KB
testcase_03 WA -
testcase_04 AC 35 ms
53,400 KB
testcase_05 AC 36 ms
52,536 KB
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 34 ms
53,572 KB
testcase_09 AC 35 ms
52,668 KB
testcase_10 WA -
testcase_11 AC 34 ms
53,560 KB
testcase_12 AC 35 ms
52,528 KB
testcase_13 AC 34 ms
52,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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