Half a million South Koreans attend nationwide exam