Just drop in to a lumber yard/Home Depot/Lowes and go with ABX or ACX exterior plywood. Stop bothering with trying to find marine grade.
If your two upper decks are fine, then they're fine. The only wood that you're going to have to replace is any wood that is in direct contact with the wood that is bad.
That said, and even though I recommended to replace it all, you could possibly get by with only replacing part of it. For example, if your bad spot is in the front left section of the deck, then you might be lucky and have perfectly good wood in the rear right section of the deck. It all depends on how far moisture and/or rot has penetrated. You COULD just cut and screw in new wood, but it's not going to last long.
The first thing you need to do is fully assess the situation. Only then will you know for sure just what needs to be done. Yes, I recommend doing the entire deck as that will provide the best assurance of a long-lasting fix, but you need to be the judge of it. If you only end up replacing part/half of the deck, it may last many years or it may end up only buying you a few years.
Another thing that you will need to check is the stringers. If the deck rotted out and it was screwed directly into the stringers without being sealed, then rot could have infiltrated them. When you cut away the deck, make sure the stringers are good! What year boat is this, by the way?
Regardless if you replace the whole deck or just cut away the bad section, be sure to coat ALL exposed wood with fiberglass resin and a layer or two of CSM. You don't want any exposed wood for water to be able to get back in to, causing you to have to repeat the process again down the road. Fix it once, and fix it right.