結果
| 問題 | No.3680 セグメント釣り |
| コンテスト | |
| ユーザー |
orangekid
|
| 提出日時 | 2026-09-05 14:22:36 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 371 bytes |
| 記録 | |
| コンパイル時間 | 844 ms |
| コンパイル使用メモリ | 21,464 KB |
| 実行使用メモリ | 15,788 KB |
| 最終ジャッジ日時 | 2026-09-05 14:23:06 |
| 合計ジャッジ時間 | 13,087 ms |
|
ジャッジサーバーID (参考情報) |
judge5_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 12 TLE * 1 |
ソースコード
T = int(input())
for t in range(T):
sx, sy, tx, ty = map(int, input().split())
ans = abs(sy - ty)
i = min(60, max(sy, ty))
sx //= 2 ** i
tx //= 2 ** i
while 1:
if abs(sx - tx) - abs(sx // 2 - tx // 2) > 2:
ans += 2
sx //= 2
tx //= 2
else:
break
ans += abs(sx - tx)
print(ans)
orangekid