×

# why this code worked?

 1 Why https://www.codechef.com/viewsolution/22580920 solution passed for this question https://www.codechef.com/COCS2019/problems/ANWCC02/? How can test cases be so weak? @humble_rookie asked 21 Jan, 23:54 4★ram_24 158●6 accept rate: 35%

 0 Because they may not check brute one or time multiplier for java may be another point. answered 22 Jan, 00:00 95●5 accept rate: 3% I get it.But How can they be so careless if that's the case :( (22 Jan, 00:17) ram_244★ 1 I agree with you (22 Jan, 13:34)
 1 https://www.codechef.com/viewsolution/22583870 check this out!! this is brute force too and worked and it is C++, so there test case were weak. answered 22 Jan, 09:43 4★jaizzz 11●1 accept rate: 0%
 0 Nice, he even did not take random r :) So weak tests) I've wondered why there were so many AC during contest. I suspected that it is for weak tests. answered 23 Jan, 17:11 126●4 accept rate: 5% The problem was a standard FFT, that might have had been the reason for so many AC's .. though I could not solve it ;) (23 Jan, 17:39)
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×161
×3