結果
| 問題 | No.3680 セグメント釣り |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-09-05 14:15:30 |
| 言語 | PyPy3 (7.3.23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 430 bytes |
| 記録 | |
| コンパイル時間 | 259 ms |
| コンパイル使用メモリ | 95,824 KB |
| 実行使用メモリ | 85,212 KB |
| 最終ジャッジ日時 | 2026-09-05 14:16:08 |
| 合計ジャッジ時間 | 6,693 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge5_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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())
if sy > ty:
sx, sy, tx, ty = tx, ty, sx, sy
h = ty - sy
if ty >= 70:
w = 0
else:
sx, tx = min(sx, tx), max(sx, tx)
sx //= 1 << ty
tx //= 1 << ty
w = tx - sx
print(h + w)
if __name__ == "__main__":
main()