Intuitively, long as primitive type should be faster in case of multiplication ofr other arithmetic operations than Long as object type. However, one of my recent submissions to a CF problem [problem:439B] disproved this intuition.↵
↵
[submission:15307785] using long, the primitive type got TLE, whilst [submission:15307798] using Long, the object type got Accepted, and has a large timely improvement over the previous one by like 10 times.↵
↵
Does anyone have any idea why this happened?
↵
[submission:15307785] using long, the primitive type got TLE, whilst [submission:15307798] using Long, the object type got Accepted, and has a large timely improvement over the previous one by like 10 times.↵
↵
Does anyone have any idea why this happened?