One day Kefa found n baloons. For convenience, we denote color of i-th baloon as si — lowercase letter of the Latin alphabet. Also Kefa has k friends. Friend will be upset, If he get two baloons of the same color. Kefa want to give out all baloons to his friends. Help Kefa to find out, can he give out all his baloons, such that no one of his friens will be upset — print ?YES?, if he can, and ?NO?, otherwise. Note, that Kefa's friend will not upset, if he doesn't get baloons at all.
A. Generous Kefa
作者:A. Generous Kefa 来源:未知 2022-06-21 09:11 阅读:次
OnedayKefafoundnbaloons.Forconvenience,wedenotecolorofi-thbaloonassi—lowercaseletteroftheLatinal
