Short answer: it depends on the wood and how the bench is built. A cheap pine or spruce slat bench will rot fairly quickly in a rainy city — often within 2–5 years. But a bench made from rot-resistant hardwood, recycled plastic, composite, or a well-coated metal frame can handle rain for decades with very little trouble.
Wood rots when moisture gets trapped in the cells and fungi can feed. In a rainy climate, the biggest problems are standing water, exposed end grain, slats bolted tightly together, and hardware that rusts. Even a good material can fail if the design holds water.
If you like the look of wooden slats, skip untreated softwood. Use naturally rot-resistant species such as teak, ipe, black locust, white oak, or thermally modified ash. Ipe and teak are the gold standards for outdoor wood: dense, oily, and often fine for 20–40 years even in wet weather. They will turn silvery gray unless you oil them, but that gray is not rot. Pressure-treated pine is cheaper, but it can warp, crack, and splinter in public use; it is okay for a low-budget bench if you accept periodic maintenance.
For truly low-maintenance urban furniture, I would look beyond solid wood. Recycled plastic lumber, often called HDPE, is probably the best municipal choice in a rainy city. It will not rot, does not need sealing or painting, resists graffiti, and handles constant moisture. The trade-offs are weight and a slightly plastic appearance. Composite wood-plastic boards look more natural and will not rot, but they can mildew in shaded damp spots, so they need occasional washing. A powder-coated aluminum or stainless steel frame is also excellent because it will not rot; just make sure it is marine-grade or has an intact powder coat, and use stainless steel bolts.
My shortlist for your climate would be: recycled plastic bench, composite slats on a metal frame, or ipe or teak slats on a stainless or powder-coated aluminum frame. Full concrete is bombproof but not very comfortable; it works in parks when vandalism is the main concern.
Details matter as much as material. Choose slats with gaps between them, a slight slope, no deep horizontal crevices, and plastic or stainless footpads that keep the frame off wet ground. Use stainless steel fasteners. If you do that, a wooden-slat bench will not rot quickly — but if you want the best balance of lifespan and maintenance in a rainy urban setting, choose composite or recycled plastic over ordinary wood.