rust, 4ms and 1.9MB, 100%
Solve it use math directly\n\nrust\n// [tomato_slices /2 - cheese_slices, 2 * cheese_slices - tomato_slices / 2]  tomato_slices should be even\npub fn num_of_bu
Solve it use math directly\n\n```rust\n// [tomato_slices /2 - cheese_slices, 2 * cheese_slices - tomato_slices / 2]  tomato_slices should be even\npub fn num_of_burgers(tomato_slices: i32, cheese_slices: i32) -> Vec<i32> {\n    if tomato_slices % 2 != 0 { return Vec::<i32>::new(); }\n    let x = tomato_slices / 2 - cheese_slices;\n    let y = 2 * cheese_slices - tomato_slices / 2;\n    if x < 0 || y < 0 { return Vec::<i32>::new(); };\n    vec![x, y]\n}\n\n```
[]