結果
| 問題 | No.3680 セグメント釣り |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-05 15:11:04 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 326 bytes |
| 記録 | |
| コンパイル時間 | 248 ms |
| コンパイル使用メモリ | 95,812 KB |
| 実行使用メモリ | 85,376 KB |
| 最終ジャッジ日時 | 2026-09-05 15:11:22 |
| 合計ジャッジ時間 | 7,080 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 4 WA * 9 |
ソースコード
def main():
t = int(input())
for _ in range(t):
sx, sy, tx, ty = map(int, input().split())
y = max(sy, ty)
h = abs(sy - ty)
if y <= 65:
w = abs((sx // (1 << y)) - (tx // (1 << y)))
else:
w = 0
print(h + w)
if __name__ == "__main__":
main()