My solution is throwing an exit code 3 upon submission. Pls tell me what's wrong in the solution. Thank you
Problem https://mirror.codeforces.com/contest/1700/problem/B
Solution-> https://ideone.com/bamalP
# | User | Rating |
---|---|---|
1 | tourist | 3993 |
2 | jiangly | 3743 |
3 | orzdevinwang | 3707 |
4 | Radewoosh | 3627 |
5 | jqdai0815 | 3620 |
6 | Benq | 3564 |
7 | Kevin114514 | 3443 |
8 | ksun48 | 3434 |
9 | Rewinding | 3397 |
10 | Um_nik | 3396 |
# | User | Contrib. |
---|---|---|
1 | cry | 167 |
2 | Um_nik | 163 |
3 | maomao90 | 162 |
3 | atcoder_official | 162 |
5 | adamant | 159 |
6 | -is-this-fft- | 158 |
7 | awoo | 155 |
8 | TheScrasse | 154 |
9 | Dominater069 | 153 |
10 | djm03178 | 152 |
My solution is throwing an exit code 3 upon submission. Pls tell me what's wrong in the solution. Thank you
Problem https://mirror.codeforces.com/contest/1700/problem/B
Solution-> https://ideone.com/bamalP
Name |
---|
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.