I'm getting WA for this problem. I'm using the proposed solution with Fast Fourier Transformation. My code seems to pass the test cases from http://icpc.baylor.edu/worldfinals/problems but I'm still getting WA.
Is there any tricky input ?
My code:
Code: Select all
Cut after Acc...