Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5BMpRV6przXHwuKTz
13 lines
532 B
Plaintext
13 lines
532 B
Plaintext
Same order, same three free riders, three strategies
|
|
====================================================
|
|
|
|
Order pickup: Biryani House (2,3)
|
|
P1 Imran at (3,3) 1 km away rating 4.2 idle since minute 30
|
|
P2 Kavya at (6,2) 5 km away rating 4.8 idle since minute 20
|
|
P3 Sunil at (2,6) 3 km away rating 4.5 idle since minute 10
|
|
|
|
nearest -> P1
|
|
rated<=5km -> P2 (all three are within 5 km, so the best rating wins)
|
|
rated<=2km -> P1 (only P1 is within 2 km)
|
|
longest-idle -> P3 (P3 has waited longest)
|