# Why am I getting wrong answer for almost all test cases?

**URL:** <https://discuss.codechef.com/t/why-am-i-getting-wrong-answer-for-almost-all-test-cases/90353>\
**Category:** Uncategorized\
**Created:** [May 29, 2021, 12:30pm UTC](https://discuss.codechef.com/t/why-am-i-getting-wrong-answer-for-almost-all-test-cases/90353 "2021-05-29T12:30:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhi\_rex1](https://discuss.codechef.com/user_avatar/discuss.codechef.com/abhi_rex1/32/24644_2.png) [@abhi\_rex1](https://discuss.codechef.com/u/abhi_rex1)\
**Post date:** [May 29, 2021, 12:30pm UTC](https://discuss.codechef.com/t/why-am-i-getting-wrong-answer-for-almost-all-test-cases/90353/1 "2021-05-29T12:30:39Z")

</div>

Hi, I have tried to write the solution for the problem: **AMONGUS2**  
Here is my solution to this problem: [CodeChef: Practical coding for everyone](https://www.codechef.com/viewsolution/46996229)  
I’m getting AC only for one test case but for all other test cases, I’m getting Wrong Answer.  
Please help me!

---

<div class="post-metadata">

**Author:** ![player\_06](https://discuss.codechef.com/user_avatar/discuss.codechef.com/player_06/32/24644_2.png) [@player\_06](https://discuss.codechef.com/u/player_06)\
**Post date:** [May 29, 2021, 12:41pm UTC](https://discuss.codechef.com/t/why-am-i-getting-wrong-answer-for-almost-all-test-cases/90353/2 "2021-05-29T12:41:23Z")

</div>

I m not able to access the page

---

<div class="post-metadata">

**Author:** ![aviral311](https://discuss.codechef.com/user_avatar/discuss.codechef.com/aviral311/32/44819_2.png) [@aviral311](https://discuss.codechef.com/u/aviral311)\
**Post date:** [May 29, 2021, 1:36pm UTC](https://discuss.codechef.com/t/why-am-i-getting-wrong-answer-for-almost-all-test-cases/90353/3 "2021-05-29T13:36:29Z")

</div>

Same here,  
Can’t view your solution

“Error 403 Access denied! You don’t have permissions for this page”

---

<div class="post-metadata">

**Author:** ![manvi\_03](https://discuss.codechef.com/user_avatar/discuss.codechef.com/manvi_03/32/101114_2.png) [@manvi\_03](https://discuss.codechef.com/u/manvi_03)\
**Post date:** [May 29, 2021, 5:42pm UTC](https://discuss.codechef.com/t/why-am-i-getting-wrong-answer-for-almost-all-test-cases/90353/4 "2021-05-29T17:42:26Z")

</div>

Well, the countdown for the INOI problems still goes on, it’s better to paste your [formatted](https://discuss.codechef.com/t/tutorial-color-format-the-code/36585) code here.
