Unable to detect the bug in the polynomial hash function

Revision en3, by skpro19, 2017-03-29 02:42:33

I am getting a WA on testCase 6.

Question — Div 2C

My Submission

Can someone please tell me what's wrong with the code?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English skpro19 2017-03-29 02:42:33 60
en2 English skpro19 2017-03-29 01:38:32 12
en1 English skpro19 2017-03-29 01:24:30 243 Initial revision (published)