Is it North or South Korea?
North Korea even had a head start by a far margin. Up until 1970s, North Korea was pretty much the better equipped, better fed, and stronger military force.
South Korea would not have survived had it not had military dictatorship guarding against North Korean aggression both externally and internally (lot of bitter South Koreans wanting communism).