In last educational problem C, I submitted what I thought was a wrong code (I even resubmmited shortly after). I didn't declare my answer variable as a long long, even though the worst case is 5000^3 which exceeds 10^10. Here is my code https://codeforces.me/contest/2182/submission/355744056
I suspect something weird is happening in the last cout, where the compiler is treating it as a long long, even though there is an int and an unsigned int being multiplied.
Any help is appreciated!








Just guessing but prolly kras.size() is unsigned something and that does the trick.
The
.size()function returns asize_ttype, which can be considered anunsigned long longwhen the testing machine is 64-bit.Thank you so much! That makes sense.