# Whats the difference?

**URL:** <https://discuss.codechef.com/t/whats-the-difference/54362>\
**Category:** general\
**Tags:** c-plus-plus\
**Created:** [February 24, 2020, 6:50am UTC](https://discuss.codechef.com/t/whats-the-difference/54362 "2020-02-24T06:50:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cubefreak777](https://discuss.codechef.com/user_avatar/discuss.codechef.com/cubefreak777/32/215911_2.png) [@cubefreak777](https://discuss.codechef.com/u/cubefreak777)\
**Post date:** [February 24, 2020, 6:50am UTC](https://discuss.codechef.com/t/whats-the-difference/54362/1 "2020-02-24T06:50:00Z")

</div>

While solving problem CYCLCSUM from febuary cookoff I needed values of 2 variables as negative infinity so I used LLONG\_MIN for their instantiation and the verdict was WA but on changing their values to -1e18 the verdict was AC . Can somebody explain why is this happening ?  
WA code : [CodeChef: Practical coding for everyone](https://www.codechef.com/viewsolution/29873719)  
AC code : [CodeChef: Practical coding for everyone](https://www.codechef.com/viewsolution/29875104)  
see line 36 for checking the difference

---

<div class="post-metadata">

**Author:** ![ssjgz](https://discuss.codechef.com/user_avatar/discuss.codechef.com/ssjgz/32/346011_2.png) [@ssjgz](https://discuss.codechef.com/u/ssjgz)\
**Post date:** [February 24, 2020, 9:02am UTC](https://discuss.codechef.com/t/whats-the-difference/54362/2 "2020-02-24T09:02:51Z")

</div>

Consider the testcase:

```auto
1
1
-1

```

---

<div class="post-metadata">

**Author:** ![cubefreak777](https://discuss.codechef.com/user_avatar/discuss.codechef.com/cubefreak777/32/215911_2.png) [@cubefreak777](https://discuss.codechef.com/u/cubefreak777)\
**Post date:** [February 24, 2020, 9:21am UTC](https://discuss.codechef.com/t/whats-the-difference/54362/3 "2020-02-24T09:21:48Z")

</div>

Thanks a bunch buddy ,got the fault 😃
