Wrong answer on LightOJ 1189

Правка en1, от toTalmeSS, 2016-10-21 18:24:37

Hello guys... I need help on this problem. I've tried my code against various outputs, but still the judge shows "Wrong Answer". Where's the problem? At first I thought maybe the numbers(suppose n) which can be expressed as m!(m is another number smaller than n), but not as sum of factorials, are giving me WA; but I tried that way too and got WA. It'd be a great help to me if anyone could point out what should be done. Thanks in advance.

Problem link My code

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский toTalmeSS 2016-10-21 18:24:37 591 Initial revision (published)