Implementation Difficulty in the String Problem

Правка en1, от hulk_baba, 2016-12-31 21:58:50

Please go through this problem 716B. My idea is : 1. if length of string in less than 26 , print "-1" and return ; 2. calculate frequency of first 26 characters and then see how many characters are left out and how many '?' are available . 3. If left out == '?' it is possible.

  1. I tried it but failed on 18th test caseYour text to link here...? Could you help me with my implementation. Or if you have more elegant implementation please suggest me.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский hulk_baba 2016-12-31 22:00:27 22 Tiny change: ' test case[Your text to link here...](http://c' -> ' test case [here](http://c'
en2 Английский hulk_baba 2016-12-31 21:59:52 30
en1 Английский hulk_baba 2016-12-31 21:58:50 612 Initial revision (published)