FLOW018 C# vs Python 3.6

I’m going through and trying to learn the syntax of C#… I’m doing the Small Factorial problem and got a solution I thought worked.

I submitted it and it said I was wrong. I submitted another answer via Python and it said it was correct.

I did the factorial of 1-100 in both python and c#, took the outputs, saved them to their own individual file, and used powershell to check each line and see if they were equal. All 100 lines were equivalent from c# and python.

Can someone tell me why code chef is saying my C# answer is wrong?

C# answer:
https://www.codechef.com/viewsolution/49904061

Python 3.6 answer:
https://www.codechef.com/viewsolution/49904087

Try this test case:

Input

1
0

Expected Output

1

Your Output

0
2 Likes

… Thank you. XD