← 返回 openai 的题目列表Plant Infection Simulation (Multi-part)
类型:online_judge
You are given a plant infection spread model over a farm field. Implement a simulator for the infection process and output the required results.
The question has 5 parts, each building on the previous one by adding rules or additional metrics to compute (e.g., next-step state update, neighborhood/spread rule changes, infection count/peak stats, time-step queries, adding immunity/recovery/barriers, etc.).
Simulate the evolution over time starting from the initial state under the given spread rules, and output the required result for each part.
Note: The interview write-up does not include a precise I/O format, spread rules, or what each of the 5 parts asks for, so the full problem statement cannot be reconstructed; only the theme is retained.