結果

問題 No.1412 Super Ryuo
ユーザー KudeKude
提出日時 2021-02-28 21:23:57
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 40 ms / 2,000 ms
コード長 137 bytes
コンパイル時間 213 ms
コンパイル使用メモリ 82,400 KB
実行使用メモリ 53,540 KB
最終ジャッジ日時 2024-04-12 10:23:05
合計ジャッジ時間 1,516 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 38 ms
52,820 KB
testcase_01 AC 39 ms
51,760 KB
testcase_02 AC 39 ms
52,300 KB
testcase_03 AC 40 ms
52,664 KB
testcase_04 AC 39 ms
51,824 KB
testcase_05 AC 39 ms
52,708 KB
testcase_06 AC 40 ms
52,316 KB
testcase_07 AC 39 ms
52,084 KB
testcase_08 AC 40 ms
52,124 KB
testcase_09 AC 40 ms
52,428 KB
testcase_10 AC 40 ms
52,520 KB
testcase_11 AC 39 ms
52,560 KB
testcase_12 AC 40 ms
53,540 KB
testcase_13 AC 39 ms
52,660 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