My solution is throwing an exit code 3 upon submission. Pls tell me what's wrong in the solution. Thank you
Problem https://codeforces.com/contest/1700/problem/B
Solution-> https://ideone.com/bamalP
# | User | Rating |
---|---|---|
1 | tourist | 3671 |
2 | jiangly | 3653 |
3 | Um_nik | 3629 |
4 | Benq | 3513 |
5 | ksun48 | 3486 |
6 | MiracleFaFa | 3466 |
7 | slime | 3452 |
8 | maroonrk | 3422 |
9 | Radewoosh | 3406 |
10 | greenheadstrange | 3393 |
# | User | Contrib. |
---|---|---|
1 | awoo | 187 |
2 | YouKn0wWho | 182 |
2 | -is-this-fft- | 182 |
4 | Um_nik | 179 |
5 | Monogon | 177 |
6 | antontrygubO_o | 171 |
7 | maroonrk | 165 |
8 | adamant | 164 |
9 | SecondThread | 163 |
10 | SlavicG | 161 |
My solution is throwing an exit code 3 upon submission. Pls tell me what's wrong in the solution. Thank you
Problem https://codeforces.com/contest/1700/problem/B
Solution-> https://ideone.com/bamalP
Name |
---|
Auto comment: topic has been updated by NSG_SYPHER (previous revision, new revision, compare).
Note that the limit for the number is <= 10^1e5. The largest value that can fit in a long long variable is 1e18 which is still too small on the limit.
Thnx for the reply but I still don't get it....long long int can hold value upto 2^32 digits right? Here the largest length of the number could 1e5 so how come too small? Plz explain.
$$$2^{31} -1$$$ is the maximum value of int, not the amount of digits. long long (or long long int, those two are identical) has a $$$2^{63} -1$$$ maximum value, but that doesn't still get close to $$$2^{32}$$$ digits. $$$2^{32}$$$ full decimal digits is equivalent to over 1.6 gigabytes, this is more than we can set as the memory limit for most problems.
Got it .Thanks