SEOUL, South Korea — North Korea’s leader, Kim Jong-un, said on Friday that he was willing to hold a third summit meeting with President Trump, but only if the United States changed its stance on enforcing sanctions by the end of this year, the country’s state media reported.

Mr. Kim’s remarks came a day after Mr. Trump said he was open to the idea of meeting Mr. Kim again, though their second round of talks, held in Hanoi, Vietnam, in late February, abruptly ended without a nuclear disarmament deal.

The Hanoi meeting collapsed after Mr. Kim demanded that Washington drop the most crippling sanctions imposed on his country in return for a partial dismantlement of the North’s nuclear program, an offer that Mr. Trump considered insufficient.

“I am willing to accept if the United States proposes a third North Korea-United States summit on the condition that it has a right attitude and seeks a solution that we can share,” Mr. Kim said in a speech to his country’s rubber-stamp legislature, the Supreme People’s Assembly, on Friday.