|  | 
|  | 
| back to board | Read this! In the problem it's stated that:"Each value of the function is longint (signed long in C++)."
 
 The solution doesnt get AC if you use long (longint Pascal). I got AC for using double (extended Pascal),but have'n verified it with long long (int64 Pascal) though.
Statement and tests are correct, you just don't see tricky test (+) | 
 | 
|