Skip to main content

Practice · 5 of 6

Budget: sum overflow

CHALLENGE
Difficulty: advanced+25 XP

**Tình huống.** n ≤ 100000, a[i] up to 10^9. Compute the total sum of the array. What is mandatory? **Thuật toán nào phù hợp nhất? Chương trình chỉ cần in ra chữ cái.** **A)** int suffices **B)** unsigned int suffices **C)** long long — the sum reaches 10^14, int overflows **D)** Big integer library

Back to lesson: Practice: Budget Drill Set