結果

問題 No.1412 Super Ryuo
ユーザー KudeKude
提出日時 2021-02-28 21:23:57
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 74 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 398 ms
コンパイル使用メモリ 87,284 KB
実行使用メモリ 71,644 KB
最終ジャッジ日時 2023-07-26 04:51:16
合計ジャッジ時間 2,181 ms
ジャッジサーバーID
(参考情報)
judge / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 69 ms
71,584 KB
testcase_01 AC 69 ms
71,340 KB
testcase_02 AC 69 ms
71,436 KB
testcase_03 AC 74 ms
71,332 KB
testcase_04 AC 69 ms
71,644 KB
testcase_05 AC 70 ms
71,332 KB
testcase_06 AC 69 ms
71,184 KB
testcase_07 AC 69 ms
71,352 KB
testcase_08 AC 69 ms
71,340 KB
testcase_09 AC 69 ms
71,536 KB
testcase_10 AC 71 ms
71,428 KB
testcase_11 AC 72 ms
71,584 KB
testcase_12 AC 70 ms
71,444 KB
testcase_13 AC 69 ms
71,508 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

a, b, c, d = map(int, input().split())
p, q = abs(c - a), abs(d - b)
ans = min((p + q + 2) // 3, 1 + (min(p, q) + 2) // 3, 2)
print(ans)
0